llSetRot.lsl 286 B

12345678910111213
  1. default
  2. {
  3. state_entry()
  4. {
  5. llOwnerSay("Touch me");
  6. }
  7. touch_start(integer total_number)
  8. {
  9. rotation Y_10 = llEuler2Rot( < 0, 0, 30 * DEG_TO_RAD > );
  10. rotation newRotation = llGetRot() * Y_10;
  11. llSetRot( newRotation );
  12. }
  13. }