Difference between revisions of "NDOIM"

From Legends of Aria Admin and Modding Wiki
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
 
{| 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>
 
</center>
Line 16: Line 16:
 
{| class="wikitable" | style="width: 60%"
 
{| class="wikitable" | style="width: 60%"
 
|-
 
|-
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">MoveToContainer() || .
+
|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