Description
Supported Script Types: Server Entity Scripts • Assignment Client Scripts
TheAvatarList
API provides information about avatars within the current domain.
Warning: An API named "AvatarList
" is also provided for Interface, client entity, and avatar
scripts, however, it is a synonym for the AvatarManager API.
Methods
Name | Return Value | Summary |
---|---|---|
getAvatar
|
ScriptAvatar |
Gets information about an avatar. |
getAvatarIdentifiers
|
Array.<Uuid> |
Gets the IDs of all avatars in the domain. Warning: If the AC script is acting as an avatar (i.e., |
getAvatarsInRange
|
Array.<Uuid> |
Gets the IDs of all avatars within a specified distance from a point. Warning: If the AC script is acting as an avatar (i.e., |
isAvatarInRange
|
boolean |
Checks whether there is an avatar within a specified distance from a point. |
processAvatarDataPacket
|
None |
Deprecated: This function is deprecated and will be removed. |
processAvatarIdentityPacket
|
None |
Deprecated: This function is deprecated and will be removed. |
processBulkAvatarTraits
|
None |
Deprecated: This function is deprecated and will be removed. |
processKillAvatar
|
None |
Deprecated: This function is deprecated and will be removed. |
sessionUUIDChanged
|
None |
Deprecated: This function is deprecated and will be removed. |
Signals
Name | Summary |
---|---|
avatarAddedEvent
|
Triggered when an avatar arrives in the domain. |
avatarRemovedEvent
|
Triggered when an avatar leaves the domain. |
avatarSessionChangedEvent
|
Triggered when an avatar's session ID changes. |
Method Details
(static) getAvatar( avatarID ) → {ScriptAvatar}
Returns: Information about the avatar. |
||||||
---|---|---|---|---|---|---|
Gets information about an avatar. Parameters
|
(static) getAvatarIdentifiers( ) → {Array.<Uuid>}
Returns: The IDs of all avatars in the domain (excluding AC script's avatar). |
---|
Gets the IDs of all avatars in the domain. Warning: If the AC script is acting as an avatar (i.e., Example
|
(static) getAvatarsInRange( position, range ) → {Array.<Uuid>}
Returns: The IDs of all avatars within the search distance from the position (excluding AC script's avatar). |
|||||||||
---|---|---|---|---|---|---|---|---|---|
Gets the IDs of all avatars within a specified distance from a point. Warning: If the AC script is acting as an avatar (i.e., Parameters
Example
|
(static) isAvatarInRange( position, range ) → {boolean}
Returns: true if there's an avatar within the specified distance of the point, false
if not.
|
|||||||||
---|---|---|---|---|---|---|---|---|---|
Checks whether there is an avatar within a specified distance from a point. Parameters
|
(static) processAvatarDataPacket( message, sendingNode ) | |||||||||
---|---|---|---|---|---|---|---|---|---|
Deprecated: This function is deprecated and will be removed. Parameters
|
(static) processAvatarIdentityPacket( message, sendingNode ) | |||||||||
---|---|---|---|---|---|---|---|---|---|
Deprecated: This function is deprecated and will be removed. Parameters
|
(static) processBulkAvatarTraits( message, sendingNode ) | |||||||||
---|---|---|---|---|---|---|---|---|---|
Deprecated: This function is deprecated and will be removed. Parameters
|
(static) processKillAvatar( message, sendingNode ) | |||||||||
---|---|---|---|---|---|---|---|---|---|
Deprecated: This function is deprecated and will be removed. Parameters
|
(static) sessionUUIDChanged( sessionUUID, oldSessionUUID ) | |||||||||
---|---|---|---|---|---|---|---|---|---|
Deprecated: This function is deprecated and will be removed. Parameters
|
Signal Details
avatarAddedEvent(
sessionUUID
)
Returns: Signal |
||||||
---|---|---|---|---|---|---|
Triggered when an avatar arrives in the domain. Parameters
Example
|
avatarRemovedEvent(
sessionUUID
)
Returns: Signal |
||||||
---|---|---|---|---|---|---|
Triggered when an avatar leaves the domain. Parameters
Example
|
avatarSessionChangedEvent(
newSessionUUID,
oldSessionUUID
)
Returns: Signal |
|||||||||
---|---|---|---|---|---|---|---|---|---|
Triggered when an avatar's session ID changes. Parameters
Example
|