Difference between revisions of "NDOIF"

From Legends of Aria Admin and Modding Wiki
Jump to: navigation, search
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<center><p style="width: 60%">[[NDOIA|A]][[NDOIB|B]][[NDOIC|C]][[NDOID|D]][[NDOIE|E]][[NDOIF|F]][[NDOIG|G]][[NDOIH|H]][[NDOII|I]][[NDOIJ|J]][[NDOIK|K]][[NDOIL|L]][[NDOIM|M]][[NDOIN|N]][[NDOIO|O]][[NDOIP|P]][[NDOIQ|Q]][[NDOIR|R]][[NDOIS|S]][[NDOIT|T]][[NDOIU|U]][[NDOIV|V]][[NDOIW|W]][[NDOIX|X]][[NDOIY|Y]][[NDOIZ|Z]]</p></center>
+
<p style="width:60%;margin: 0 auto">[[NewDawnHome|[Main]]] [[NDServerIndexScriptsMain|[Lua Examples]]]</p>
 +
<center><p style="width: 60%">[[NDOIA|A]] [[NDOIB|B]] [[NDOIC|C]] [[NDOID|D]] [[NDOIE|E]] [[NDOIF|F]] [[NDOIG|G]] [[NDOIH|H]] [[NDOII|I]] [[NDOIJ|J]] [[NDOIK|K]] [[NDOIL|L]] [[NDOIM|M]] [[NDOIN|N]] [[NDOIO|O]] [[NDOIP|P]] [[NDOIQ|Q]] [[NDOIR|R]] [[NDOIS|S]] [[NDOIT|T]] [[NDOIU|U]] [[NDOIV|V]] [[NDOIW|W]] [[NDOIX|X]] [[NDOIY|Y]] [[NDOIZ|Z]]</p></center>
 
<p style="color: #DDDD88;font-size: 22px;width:60%;margin: 0 auto">Object Functions & Examples</p>
 
<p style="color: #DDDD88;font-size: 22px;width:60%;margin: 0 auto">Object Functions & Examples</p>
 
<center>
 
<center>
 
{| class="wikitable" | style="width: 60%"
 
{| class="wikitable" | style="width: 60%"
 
|-
 
|-
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">FireTimer() || .
+
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">FindNearestObject()</p>Params<br>objectsearcher - object searcher to use<br>Returns<br>table array of objects matching criteria || Returns the closest object that matches the search criteria. This only works on objects in the world.
 
|}
 
|}
 
</center>
 
</center>
Line 15: Line 16:
 
{| class="wikitable" | style="width: 60%"
 
{| class="wikitable" | style="width: 60%"
 
|-
 
|-
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">FireTimerAsync() || .
+
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">FireTimer()</p>Params<br>name - name of timer(identifier)<br>(...) One or more object arguments to be passed to the Timer event. Function references are not supported || Fire a timer event immediately.
 +
|}
 +
</center>
 +
<p style="width: 60%;margin: 0 auto">Example</p>
 +
<div style="width:60%;margin: 0 auto">
 +
  CODE EXAMPLE BLOCK
 +
</div>
 +
 
 +
<center>
 +
{| class="wikitable" | style="width: 60%"
 +
|-
 +
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">FireTimerAsync()</p>name - name of timer(identifier)<br>(...) One or more object arguments to be passed to the Timer event. Function references are not supported  ||  Fire a timer event on the next object update.
 +
|}
 +
</center>
 +
<p style="width: 60%;margin: 0 auto">Example</p>
 +
<div style="width:60%;margin: 0 auto">
 +
  CODE EXAMPLE BLOCK
 +
</div>
 +
 
 +
<center>
 +
{| class="wikitable" | style="width: 60%"
 +
|-
 +
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">ForceObjectUpdate()</p>Params<br>gameobject - user object to send the update to || Force the engine to send an object update to a specific user.
 
|}
 
|}
 
</center>
 
</center>

Latest revision as of 06:29, 27 November 2019

[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

Object Functions & Examples

FindNearestObject()

Params
objectsearcher - object searcher to use
Returns
table array of objects matching criteria
Returns the closest object that matches the search criteria. This only works on objects in the world.

Example

 CODE EXAMPLE BLOCK

FireTimer()

Params
name - name of timer(identifier)
(...) One or more object arguments to be passed to the Timer event. Function references are not supported
Fire a timer event immediately.

Example

 CODE EXAMPLE BLOCK

FireTimerAsync()

name - name of timer(identifier)
(...) One or more object arguments to be passed to the Timer event. Function references are not supported
Fire a timer event on the next object update.

Example

 CODE EXAMPLE BLOCK

ForceObjectUpdate()

Params
gameobject - user object to send the update to
Force the engine to send an object update to a specific user.

Example

 CODE EXAMPLE BLOCK