Kimm Starr and I are looking for a moving sidewalk script that will work in bulletsim. It's the sort of sidewalk that you stand on and it moves your avatar forward (without using a 'sit' pose). She has one that was scripted for ODE but not for bulletsim. Any help would be greatly appreciated!
Here is the ODE version:
Code: Select all
// Moving Sidewalk Escalator
// Pushes avatar when stepped on or detected within area of prim.
//
// v0.1 vegaslon plutonian (2013) working concept.
// v0.2 Lani Global (2013) added sim restart reset.
// v0.3 Lani Global (2013) added description setting of push force.
// v0.4 Lani Global (2013) changed to collide only instead of volume detect.
default
{
state_entry()
{
float OBJECTDESC = 10; // set the default push to 10.
llSetTextureAnim(ANIM_ON | SMOOTH | LOOP , ALL_SIDES, 1, 1, 1, 1, -0.07); // animate sliding texture.
}
collision(integer num_detected)
{
float OBJECTDESC = llGetObjectDesc(); // gets description of prim and use it as push force in z axis.
llPushObject(llDetectedKey(0),<OBJECTDESC,0,0>, <0,0,0>, TRUE); // push on the avatar a little.
}
changed(integer EVENT)
{
if (EVENT & CHANGED_REGION_START) // detect if region has been restarted.
{
llResetScript(); // reset the script
}
}
}