Public Trampoline Script

From OpenSimulator

Revision as of 07:32, 22 September 2020 by Djphil (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
float force_amount = 999.0;
 
default
{
    collision_start(integer tnum)
    {
        // UnComment this if you want to trigger a sound
        // llTriggerSound("trampoline", 0.5);
        if (llDetectedType(0) & AGENT)
        llPushObject(llDetectedKey(0), force_amount*llRot2Up(llGetRot()), ZERO_VECTOR, FALSE);
    }
}
General
About This Wiki