Advertisement
worstbull

Object invisible when walking

Jan 29th, 2018
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. default
  2. {
  3.     state_entry()
  4.     {
  5.         llSetAlpha(1.0, ALL_SIDES);
  6.         llSetTimerEvent(0.2);
  7.     }
  8.    
  9.     timer()
  10.     {
  11.         if (llGetAgentInfo(llGetOwner()) & AGENT_WALKING)
  12.         {
  13.             state walking;
  14.         }
  15.     }
  16. }
  17. state walking
  18. {
  19.     state_entry()
  20.     {
  21.         llSetTimerEvent(0.2);
  22.         llSetAlpha(0.0, ALL_SIDES);
  23.     }
  24.     timer()
  25.     {
  26.         if (!(llGetAgentInfo(llGetOwner()) & AGENT_WALKING))
  27.         {
  28.             state default;
  29.         }
  30.     }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement