Advertisement
Gayngel

Bobbing and Rotation Script

Dec 30th, 2014
653
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. default
  2. {
  3. state_entry() {
  4. llSetLinkPrimitiveParamsFast(LINK_THIS,[PRIM_PHYSICS_SHAPE_TYPE, PRIM_PHYSICS_SHAPE_CONVEX]); // for non mesh aware viewers
  5. llSetKeyframedMotion(
  6. [<0.0, 0.0, 0.5>, llEuler2Rot(<0, 0, 180> * DEG_TO_RAD), 2,
  7. <0.0, 0.0,-0.5>, llEuler2Rot(<0, 0, 180> * DEG_TO_RAD), 2],
  8. [KFM_MODE, KFM_LOOP]);
  9. }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement