Jump to content

Shiro Neximus

Resident
  • Posts

    1
  • Joined

  • Last visited

Reputation

0 Neutral

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I'm wondering if there is a better way for 'state' (not in a script sense) detection, for example I want to make particles happen when an avatar is in a state of flight, and to stop when flight stops. The thing is, the way I have it sounds inefficient, slow, and script intensive, where it basically checks every 1 second if an avatar is flying. integer flying; default { state_entry() {; llSetColor(<1,1,0>,ALL_SIDES); llSleep(1); flying = llGetAgentInfo(llGetOwner()); if(flying & AGENT_FLYING) state flying; if(flying & ~AGENT_FLYING); state notflying; } } state flying { state_entry() { llSetColor(<0,1,0>, ALL_SIDES); llSay(0, "Flying"); llSleep(1); flying = llGetAgentInfo(llGetOwner()); if(flying & AGENT_FLYING) state default; if(flying & ~AGENT_FLYING); state notflying; } } state notflying { state_entry() { llSetColor(<1,0,0>, ALL_SIDES); llSay(0, "Not Flying"); llSleep(1); flying = llGetAgentInfo(llGetOwner()); if(flying & AGENT_FLYING) state flying; if(flying & ~AGENT_FLYING); state default; } }
×
×
  • Create New...