Difference between revisions of "NDOID"
(11 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">DelModule() || . | + | |style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">DecayScheduled()</p>Returns<br>bool - true if has decay scheduled or note || Returns true/false if the object has decay schedule on 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">DelModule()</p>Params<br>filename - filename to the given script<br>Returns<br>bool - returns ture if worked, false if not existing || Removes a script module, preventing it from executing any more code. Removes all event handlers code as well from this 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">DelObjVar()</p>Params<br>objvar - name of the variable to delete<br>Returns<br>bool - true if worked, false if not || Removes a given object variable from an object. Remember to make sure it exists first. | ||
+ | |} | ||
+ | </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">DeleteCharacter()</p> || Permanentely deletes the character record associated with this object. This user will be kicked when complete. | ||
+ | |} | ||
+ | </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">Destroy()</p>Params<br>eventid - identifier for event response<br>(...) - extra args for the event<br>Returns<br>bool - true if worked, false if not || Destroy this object. You can not destroy an object that is attached to a user. | ||
+ | |} | ||
+ | </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">DistanceFrom()</p>Params<br>gameobject - other object<br>Returns<br>number - distance from object || Distance from 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">DistanceFromSquared()</p>Params<br>gameobject - other game object<br>Returns<br>nummber - distance squared between the two game object vectors || Distance from specified object multiplied by itself. Used for speedy comparisons. | ||
|} | |} | ||
</center> | </center> |
Latest revision as of 07:23, 25 November 2019
Object Functions & Examples
DecayScheduled() Returnsbool - true if has decay scheduled or note |
Returns true/false if the object has decay schedule on it. |
Example
CODE EXAMPLE BLOCK
DelModule() Paramsfilename - filename to the given script Returns bool - returns ture if worked, false if not existing |
Removes a script module, preventing it from executing any more code. Removes all event handlers code as well from this object. |
Example
CODE EXAMPLE BLOCK
DelObjVar() Paramsobjvar - name of the variable to delete Returns bool - true if worked, false if not |
Removes a given object variable from an object. Remember to make sure it exists first. |
Example
CODE EXAMPLE BLOCK
DeleteCharacter() |
Permanentely deletes the character record associated with this object. This user will be kicked when complete. |
Example
CODE EXAMPLE BLOCK
Destroy() Paramseventid - identifier for event response (...) - extra args for the event Returns bool - true if worked, false if not |
Destroy this object. You can not destroy an object that is attached to a user. |
Example
CODE EXAMPLE BLOCK
DistanceFrom() Paramsgameobject - other object Returns number - distance from object |
Distance from specified object. |
Example
CODE EXAMPLE BLOCK
DistanceFromSquared() Paramsgameobject - other game object Returns nummber - distance squared between the two game object vectors |
Distance from specified object multiplied by itself. Used for speedy comparisons. |
Example
CODE EXAMPLE BLOCK