AGENT FLYING

From Second Life Wiki
Revision as of 15:32, 22 December 2013 by Omei Qunhua (talk | contribs) (Add an example)
Jump to navigation Jump to search

Description

Constant: integer AGENT_FLYING = 0x0001;

The integer constant AGENT_FLYING has the value 0x0001

Related Articles

Functions

•  llGetAgentInfo

Examples

Count how many people are currently flying within this parcel <lsl> // On touch, say how many avatars are currently flying within this parcel default {

   touch_start(integer total_number)
   {
       list AgentList = llGetAgentList(AGENT_LIST_PARCEL, [] );
       integer CountAll = (AgentList != [] );
       integer CountFlying;
       key AgentKey;
       while (CountAll)
       {
           AgentKey = llList2Key(AgentList, --CountAll);
           if (llGetAgentInfo(AgentKey) & AGENT_FLYING)       ++CountFlying;
       }
       llSay(0, (string) CountFlying + " avatars are currently flying within this parcel" );
   }

} </lsl>

Deep Notes

Search JIRA for related Issues

Signature

integer AGENT_FLYING = 0x0001;