NDGIF

From Legends of Aria Admin and Modding Wiki
Jump to: navigation, search

[Main] [Lua Examples]

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Global Functions & Examples

FindObject()

Params
ObjectSearcher - object searcher to use
gameobject - Optional source object(default:object current behavior is attached to)
Returns
gameobject - first object matching the criteria
Return the first object that matches the search criteria.The source object is always excluded from the search.The source object location is used as the search center for most searchers

Example

 CODE EXAMPLE BLOCK

FindObjectWithTag()

Params
tag - tag to search
Returns
gameobject - first object matching the criteria
Return the first object with the specified tag.

Example

 CODE EXAMPLE BLOCK

FindObjectWithTagInRange()

Params
tag - tag to search
location - location to search around
distance - distances from location
Returns
gameobject - first object matching criteria
Return the first object with the specified tag within a range of a specified location (does not take height into account).

Example

 CODE EXAMPLE BLOCK

FindObjects()

ObjectSearcher - object searcher to use
gameobject - Optional source object(default:object current behavior is attached to)
Returns
table - Array of objects matching the criteria
Return an array of objects that match the search criteria. The source object is always excluded from the search. The source object location is used as the search center for most searchers..

Example

 CODE EXAMPLE BLOCK

FindObjectsWithTagInRange()

Params
tag - tag to search
location - location to search around
distance - distances from location
Returns
table- Array of objects matching criteria
.

Example

 CODE EXAMPLE BLOCK

FindPermanentObjects()

Params
ObjectSearcher - Object searcher to use
Returns
table - Array of objects matching the criteria
Return an array of permanent objects that match the search criteria.

Example

 CODE EXAMPLE BLOCK

ForceBackup()

Force the server to perform a backup cycle.

Example

 CODE EXAMPLE BLOCK

ForceDisconnect()

Params
objectid - the players objectid to disconnect
Forces a given player to be disconnected and logged off without triggering a character save.

Example

 CODE EXAMPLE BLOCK