Skip to content
lsl.devlsl.devLSL Dev

AGENT_FLYING

constant
Constant
integer AGENT_FLYING = 0x1;

Used with llGetAgentInfo to determine if the queried avatar is flying or hovering.

Constant groups

AgentInfo

Other AgentInfo values (15)

Used with llGetAgentInfo to determine if the queried avatar is flying.

Count how many people are currently flying within this parcel
10 collapsed lines
// 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" );
}
}
ConstantValReturned if agent…
40960x1000has running ("Always Run") enabled, or is using tap-tap-hold
20x0002has attachments
163840x4000is marked as a scripted agent/bot
81920x2000is in "autopilot" mode
640x0040is in "away" mode
20480x0800is in "busy" mode
10240x0400is crouching
327680x8000is floating or hovering because of a scripted attachment
10x0001is flying or hovering
2560x0100is in the air (jumping, flying or falling)
80x0008is in mouselook
320x0020is sitting on an object (and linked to it)
40x0004has scripted attachments
160x0010is sitting1
5120x0200is typing
1280x0080is walking, running or crouch walking
Original wiki source

Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.

  1. “Sit down” on the avatar context menu allows ground sits anywhere: atop the terrain, on objects or even in the air, so it is possible to sit “on” an object without linking. ↩