Public Trampoline Script

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
(→‎Initial update of trampoline script)
 
Line 1: Line 1:
−
float force_amount = 999.0;
+
float force_amount = 999.0;
−
default
+
default
−
{
+
{
−
    collision_start(integer tnum)
+
    collision_start(integer tnum)
−
    {
+
    {
−
        // UnComment this if you want to trigger a sound
+
        // UnComment this if you want to trigger a sound
−
        // llTriggerSound("trampoline", 0.5);
+
        // llTriggerSound("trampoline", 0.5);
−
        if (llDetectedType(0) & AGENT)
+
        if (llDetectedType(0) & AGENT)
−
            llPushObject(llDetectedKey(0), force_amount*llRot2Up(llGetRot()), ZERO_VECTOR, FALSE);
+
            llPushObject(llDetectedKey(0), force_amount*llRot2Up(llGetRot()), ZERO_VECTOR, FALSE);
−
    }
+
    }
−
}
+
}

Revision as of 16:22, 17 October 2008

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);
    }
}
Personal tools
General
About This Wiki