Advertisement
Guest User

Untitled

a guest
Jan 20th, 2018
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. if (iData == giChangeAnim) // We will always have permission. Change event will take care of kData being valid.
  2. {
  3. // Stop prior animation.
  4. if (kData) llStopAnimation(gsOurAnim);
  5. //
  6. // Parse the animation, position, and rotation (Euler).
  7. list l = llParseStringKeepNulls(sData, [gsSep], []);
  8. //
  9. // Get our animation, position, and rotation (Euler).
  10. gsOurAnim = llList2String(l, giOurAnimListPtr);
  11. gvOurPos = (vector)llList2String(l, giOurPosListPtr);
  12. gvOurEuler = (vector)llList2String(l, giOurEulerListPtr);
  13. //
  14. // Start the new animation.
  15. if (kData)
  16. {
  17. llStartAnimation(gsOurAnim);
  18. llSetLinkPrimitiveParamsFast(Key2LinkNum(kData), [PRIM_POS_LOCAL, gvOurPos, PRIM_ROT_LOCAL, llEuler2Rot(gvOurEuler)]);
  19. }
  20. return;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement