Advertisement
BlueWall

Simple Rotating Door

Jul 22nd, 2012
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //
  2. // Simple linked rotating door
  3. //
  4. // BlueWall Information Technologies, LLC (c) 2012
  5. // Licensed under the Apache License, Version 2.0
  6. // http://www.apache.org/licenses/LICENSE-2.0.html
  7. // Door rotates along the Z axis
  8.  
  9. default
  10.  
  11. {
  12.     touch_start(integer _det)
  13.     {
  14.         rotation closed = llGetLocalRot();
  15.         rotation open = closed + llEuler2Rot(<0,0,220*DEG_TO_RAD>);
  16.         llSetLocalRot(open);
  17.         llSleep(5);
  18.         llSetLocalRot(closed);
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement