Difference between revisions of "NDOIC"
(9 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> | ||
Line 5: | Line 6: | ||
{| class="wikitable" | style="width: 60%" | {| class="wikitable" | style="width: 60%" | ||
|- | |- | ||
− | |style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">CanHold() || . | + | |style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">CanHold()</p>Params<br>gameobject - target object<br>Returns<br>bool - true if can hold, false if can not || Is this object a container and can it hold the object passed in. This will fail if adding this object would put the container over its capacity. This does not currently check weight limits. |
|} | |} | ||
</center> | </center> | ||
Line 16: | Line 17: | ||
{| class="wikitable" | style="width: 60%" | {| class="wikitable" | style="width: 60%" | ||
|- | |- | ||
− | |style="width: 40%"| <p style="color: #DDDD88;font-size: 18px"> | + | |style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">CanPathTo()</p>Params<br>origin - the origin position<br>destination - the destination position<br>Returns<br>bool - true if works, false if it does not || Checks for a valid path from the mobile's position to location using A* algorithm. |
|} | |} | ||
</center> | </center> | ||
Line 27: | Line 28: | ||
{| class="wikitable" | style="width: 60%" | {| class="wikitable" | style="width: 60%" | ||
|- | |- | ||
− | |style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">ContainedBy() || . | + | |style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">CarriedObject()</p>Returns<br>gameobject - carried object || Get the object this mobile is carrying. The carry slot is used when a user has picked up an object but not dropped it. |
+ | |} | ||
+ | </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">ClearCollisionBounds()</p>Returns<br>bool - true if successful, false if not || Remove all collision entries from the specified object. | ||
+ | |} | ||
+ | </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">ClearPathTarget()</p>Returns<br>bool - true if works, false if not || Tell the mobile to stop pathing to his target. | ||
+ | |} | ||
+ | </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">CloseDynamicWindow()</p>Params<br>windowid - dynamic window id to close || Description: Close a dynamic window on the client. | ||
+ | |} | ||
+ | </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">CompleteLogout()</p>Returns<br>bool - true if successful, false if not || Complete the logout, saving the character to the backup. | ||
+ | |} | ||
+ | </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">ContainedBy()</p>Returns<br>gameobject - container object if it is contained, null if not || Return the container this object is inside. | ||
+ | |} | ||
+ | </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">CopyObject()</p>Params<br>eventid - event identifier for the resulting createdobject event<br>(...) One or more object arguments to be passed to the CreatedObject event. Function references are not supported || Copy this object. Once the copy is done, a CreatedObject event is fired. | ||
|} | |} | ||
</center> | </center> |
Latest revision as of 06:59, 25 November 2019
Object Functions & Examples
CanHold() Paramsgameobject - target object Returns bool - true if can hold, false if can not |
Is this object a container and can it hold the object passed in. This will fail if adding this object would put the container over its capacity. This does not currently check weight limits. |
Example
CODE EXAMPLE BLOCK
CanPathTo() Paramsorigin - the origin position destination - the destination position Returns bool - true if works, false if it does not |
Checks for a valid path from the mobile's position to location using A* algorithm. |
Example
CODE EXAMPLE BLOCK
CarriedObject() Returnsgameobject - carried object |
Get the object this mobile is carrying. The carry slot is used when a user has picked up an object but not dropped it. |
Example
CODE EXAMPLE BLOCK
ClearCollisionBounds() Returnsbool - true if successful, false if not |
Remove all collision entries from the specified object. |
Example
CODE EXAMPLE BLOCK
ClearPathTarget() Returnsbool - true if works, false if not |
Tell the mobile to stop pathing to his target. |
Example
CODE EXAMPLE BLOCK
CloseDynamicWindow() Paramswindowid - dynamic window id to close |
Description: Close a dynamic window on the client. |
Example
CODE EXAMPLE BLOCK
CompleteLogout() Returnsbool - true if successful, false if not |
Complete the logout, saving the character to the backup. |
Example
CODE EXAMPLE BLOCK
ContainedBy() Returnsgameobject - container object if it is contained, null if not |
Return the container this object is inside. |
Example
CODE EXAMPLE BLOCK
CopyObject() Paramseventid - event identifier for the resulting createdobject event (...) One or more object arguments to be passed to the CreatedObject event. Function references are not supported |
Copy this object. Once the copy is done, a CreatedObject event is fired. |
Example
CODE EXAMPLE BLOCK