flap wing.lsl 602 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. // :CATEGORY:Bird
  2. // :NAME:Roaming Owl
  3. // :AUTHOR:Ferd Frederix
  4. // :CREATED:2013-09-06
  5. // :EDITED:2013-09-18 15:39:01
  6. // :ID:707
  7. // :NUM:963
  8. // :REV:1
  9. // :WORLD:Second Life
  10. // :DESCRIPTION:
  11. // Owl wing
  12. // :CODE:
  13. // wing flap timer
  14. default
  15. {
  16. timer()
  17. {
  18. llMessageLinked(LINK_SET,0,"down","");
  19. llSetTimerEvent(0);
  20. }
  21. link_message(integer sender,integer num, string str, key id)
  22. {
  23. if (str == "flap")
  24. {
  25. llMessageLinked(LINK_SET,0,"up","");
  26. llSetTimerEvent(0.5);
  27. }
  28. }
  29. }