Difference between revisions of "Template:LSL Constants/Object Details"

From Second Life Wiki
Jump to navigation Jump to search
m (will go into more detail about intermediate shapes on the constant page.)
m
Line 210: Line 210:
{{!}}{{LSL Const|OBJECT_HOVER_HEIGHT|integer|25|c=Gets the hover height of the avatar.}}
{{!}}{{LSL Const|OBJECT_HOVER_HEIGHT|integer|25|c=Gets the hover height of the avatar.}}
{{!}}{{#var:value}}
{{!}}{{#var:value}}
{{!}}Gets the [[Hover Height|hover height]] of the avatar.<br>If '''id''' is not found or is not an avatar, -1.0 is returned. This value does ''not'' reflect the avatar shape's "Hover" slider, only the dynamic viewer setting.
{{!}}Gets the [[Hover Height|hover height]] of the avatar.<br>If '''id''' is not found or is not an avatar, -1.0 is returned. Normal values are in the range {{Interval|gte=-2.0|lte=2.0|center=hover_height}} with a default of 0.0. This value does ''not'' reflect the avatar shape's "Hover" slider, only the dynamic viewer setting.
{{!}}???
{{!}}???
{{!}}[[float]]
{{!}}[[float]]

Revision as of 09:03, 15 April 2015

Flags Description Length when typecast to a string Return Alternatives Local
OBJECT_NAME 1 Gets the prim's name.
If id is an avatar, the Legacy Name is returned.
max. 63 characters string llGetObjectName
OBJECT_DESC 2 Gets the prim's description.
If id is an avatar, an empty string is returned.
max. 127 characters string llGetObjectDesc
OBJECT_POS 3 Gets the prim's position in region coordinates.
If id is an avatar outside the region (see above), this position is relative to the region the script is running in.
max. 37 characters vector llGetPos
OBJECT_ROT 4 Gets the prim's rotation. max. 48 characters rotation llGetRot
OBJECT_VELOCITY 5 Gets the object's velocity. 36 characters vector llGetVel
OBJECT_OWNER 6 Gets an object's owner key.
If id is an avatar, that avatar's key is returned (which is the same as id).
If id is group-owned, a NULL_KEY is returned.
36 characters key llGetOwner
OBJECT_GROUP 7 Gets the prim's group key.
If id is an avatar, a NULL_KEY is returned.[1]
36 characters key Group
OBJECT_CREATOR 8 Gets the prim's creator key.
If id is an avatar, a NULL_KEY is returned.
36 characters key Creator llGetCreator
OBJECT_RUNNING_SCRIPT_COUNT 9 Gets the number of running scripts attached to the object or agent. max. 11 characters integer llGetScriptState
OBJECT_TOTAL_SCRIPT_COUNT 10 Gets the number of scripts, both running and stopped, attached to the object or agent. max. 11 characters integer llGetInventoryNumber
OBJECT_SCRIPT_MEMORY 11 Gets the total amount of script memory allocated to the object or agent, in bytes. max. 11 characters integer
OBJECT_SCRIPT_TIME 12 Gets the total amount of average script CPU time used by the object or agent, in seconds. max. 15 characters float Top Scripts
OBJECT_PRIM_EQUIVALENCE 13 Gets the prim equivalence of the object. max. 11 characters integer Calculating land impact
OBJECT_SERVER_COST 14 Gets the server cost of the object. max. 15 characters float Server cost
OBJECT_STREAMING_COST 15 Gets the streaming (download) cost of the object. max. 15 characters float Streaming (download) cost
OBJECT_PHYSICS_COST 16 Gets the physics cost of the object. max. 15 characters float Physics cost
OBJECT_CHARACTER_TIME 17 Gets the average CPU time (in seconds) used by the object for navigation, if the object is a pathfinding character. Returns 0 for non-characters. max. 15 characters float Pathfinding characters
OBJECT_ROOT 18 Gets the id of the root prim of the object requested.
If id is an avatar, returns the id of the root prim of the linkset the avatar is sitting on and linked to (or the avatar's own id if the avatar is not sitting on an object within the region).
36 characters key llGetLinkKey
OBJECT_ATTACHED_POINT 19 Gets the attachment point to which the object is attached. max. 11 characters integer llGetAttached
OBJECT_PATHFINDING_TYPE 20 Gets the pathfinding setting of the object in the region. It returns an integer matching one of the OPT_* constants. max. 11 characters integer Pathfinding types
OBJECT_PHYSICS 21 Gets the integer boolean detailing if physics is enabled or disabled on the object.
If id is an avatar or attachment, 0 is returned.
1 character integer llGetStatus PRIM_PHYSICS
OBJECT_PHANTOM 22 Gets the integer boolean detailing if phantom is enabled or disabled on the object.
If id is an avatar or attachment, 0 is returned.
1 character integer llGetStatus PRIM_PHANTOM
OBJECT_TEMP_ON_REZ 23 Gets the integer boolean detailing if temporary is enabled or disabled on the object. 1 character integer PRIM_TEMP_ON_REZ
OBJECT_RENDER_WEIGHT 24 Gets the avatar's render weight.
If id is an object, 0 is returned. If id is an avatar whose render weight is unknown to the simulator, -1 is returned. The maximum render weight reported by the server is 500000.
max. 6 characters integer Avatar_Rendering_Cost
OBJECT_HOVER_HEIGHT 25 Gets the hover height of the avatar.
If id is not found or is not an avatar, -1.0 is returned. Normal values are in the range [-2.0, 2.0] with a default of 0.0. This value does not reflect the avatar shape's "Hover" slider, only the dynamic viewer setting.
??? float
OBJECT_BODY_SHAPE_TYPE 26 Gets a float which describes the sex setting of the avatar's currently worn shape.
If id is not found or is not an avatar, -1.0 is returned.
Normal operational values are in the range [0.0, 1.0]. 0.0 is standard female setting, 1.0 is standard male setting. Intermediate values with visible differences are possible with manually crafted shapes.
max. 9 characters float