LlSetAnimationOverride
De DigiWiki.
Version du 30 novembre 2013 à 13:57 par Djphil (discuter | contributions)
// Override the Sit, Stand and Walk animations // 1. place this script and your animations in a prim // 2. edit the animation names in the script to your animation's names // 3. attach the prim to your avatar string gMySit = "chop_sit"; string gMyStand = "FStand _02"; string gMyWalk = "Kort gang F v4.1"; default { attach(key id) { if ( id ) llRequestPermissions(id , PERMISSION_OVERRIDE_ANIMATIONS); else if ( llGetPermissions() & PERMISSION_OVERRIDE_ANIMATIONS ) llResetAnimationOverride("ALL"); } run_time_permissions(integer perms) { if ( perms & PERMISSION_OVERRIDE_ANIMATIONS ) { llSetAnimationOverride( "Sitting", gMySit); llSetAnimationOverride( "Standing", gMyStand); llSetAnimationOverride( "Walking", gMyWalk); } } }