Difference between revisions of "NDOIC"
Line 28: | Line 28: | ||
{| class="wikitable" | style="width: 60%" | {| class="wikitable" | style="width: 60%" | ||
|- | |- | ||
− | |style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">CarriedObject()</p> || . | + | |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> | </center> | ||
Line 39: | Line 39: | ||
{| class="wikitable" | style="width: 60%" | {| class="wikitable" | style="width: 60%" | ||
|- | |- | ||
− | |style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">ClearCollisionBounds()</p> || . | + | |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> | </center> | ||
Line 50: | Line 50: | ||
{| class="wikitable" | style="width: 60%" | {| class="wikitable" | style="width: 60%" | ||
|- | |- | ||
− | |style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">ClearPathTarget()</p> || . | + | |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> | </center> | ||
Line 61: | Line 61: | ||
{| class="wikitable" | style="width: 60%" | {| class="wikitable" | style="width: 60%" | ||
|- | |- | ||
− | |style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">CloseDynamicWindow()</p> || . | + | |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> | </center> | ||
Line 72: | Line 72: | ||
{| class="wikitable" | style="width: 60%" | {| class="wikitable" | style="width: 60%" | ||
|- | |- | ||
− | |style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">CompleteLogout()</p> || . | + | |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> | </center> | ||
Line 83: | Line 83: | ||
{| class="wikitable" | style="width: 60%" | {| class="wikitable" | style="width: 60%" | ||
|- | |- | ||
− | |style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">ContainedBy()</p> || . | + | |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> | </center> | ||
Line 94: | Line 94: | ||
{| class="wikitable" | style="width: 60%" | {| class="wikitable" | style="width: 60%" | ||
|- | |- | ||
− | |style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">CopyObject()</p> || . | + | |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