Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (iData == giChangeAnim) // We will always have permission. Change event will take care of kData being valid.
- {
- // Stop prior animation.
- if (kData) llStopAnimation(gsOurAnim);
- //
- // Parse the animation, position, and rotation (Euler).
- list l = llParseStringKeepNulls(sData, [gsSep], []);
- //
- // Get our animation, position, and rotation (Euler).
- gsOurAnim = llList2String(l, giOurAnimListPtr);
- gvOurPos = (vector)llList2String(l, giOurPosListPtr);
- gvOurEuler = (vector)llList2String(l, giOurEulerListPtr);
- //
- // Start the new animation.
- if (kData)
- {
- llStartAnimation(gsOurAnim);
- llSetLinkPrimitiveParamsFast(Key2LinkNum(kData), [PRIM_POS_LOCAL, gvOurPos, PRIM_ROT_LOCAL, llEuler2Rot(gvOurEuler)]);
- }
- return;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement