Difference between revisions of "NDOIM"

From Legends of Aria Admin and Modding Wiki
Jump to: navigation, search
(Created page with "<center><p style="width: 60%">ABCDEFGHIJKLM...")
 
 
(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">MoveTo() || .
+
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">MoveTo()</p>Params<br>location - location to move to<br>number - multiplier to apply to base mobile speed<br>number - body size of mobile being moved<br>eventid - event identifier of the arrived event<br>bool - true if it works, false if it fails || Tells a mobile to move directly to a location. He will stop if he is blocked by collision. An Arrived event will fire on this object when he arrives at the destination or is blocked.
 +
|}
 +
</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">MoveToContainer()</p>Params<br>gameobject - container object<br>location - position inside container<br>Returns<br>bool - true if it worked, false if not || Attempts to put this object into the specified container.
 
|}
 
|}
 
</center>
 
</center>

Latest revision as of 08:01, 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

MoveTo()

Params
location - location to move to
number - multiplier to apply to base mobile speed
number - body size of mobile being moved
eventid - event identifier of the arrived event
bool - true if it works, false if it fails
Tells a mobile to move directly to a location. He will stop if he is blocked by collision. An Arrived event will fire on this object when he arrives at the destination or is blocked.

Example

 CODE EXAMPLE BLOCK

MoveToContainer()

Params
gameobject - container object
location - position inside container
Returns
bool - true if it worked, false if not
Attempts to put this object into the specified container.

Example

 CODE EXAMPLE BLOCK