Difference between revisions of "NDGID"
(One intermediate revision by the same user not shown) | |||
Line 6: | Line 6: | ||
{| 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">DebugGetAvgFrameTime()</p> || Returns the average running frametime of simulation thread. |
|} | |} | ||
</center> | </center> | ||
Line 17: | 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">DebugMessage()</p>Params<br>(...) One or more strings to be written. A space is inserted between each argument || Writes a message to the debug console and/or lua logs. |
|} | |} | ||
</center> | </center> | ||
Line 28: | Line 28: | ||
{| 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">DeleteCharacter()</p>Params<br>userid - userid to player to delete<br>charid - characterId record to delete || Deletes a given character, requires a userId and valid characterId. |
|} | |} | ||
</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"> | + | |style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">DelView()</p>Params<br>eventid - event identifier of the view to remove || Remove an object search subscription. |
|} | |} | ||
</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">DiceRoll() || . | + | |style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">DestroyAllObjects()</p>Params<br>bool - ture/false to destroy no reset objects, defaults to false<br>responseidentifier - the signal when this command has completed || Sends a request to the object database. |
+ | |} | ||
+ | </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">DiceRoll()</p>Params<br>numdice - number of dice to roll<br>numsides - number of sides of the dice || Rolls n-dice with k-sides (max 100 dice with 1,000 sides) and returns the summed total. | ||
|} | |} | ||
</center> | </center> |
Latest revision as of 04:50, 18 November 2019
Global Functions & Examples
DebugGetAvgFrameTime() |
Returns the average running frametime of simulation thread. |
Example
CODE EXAMPLE BLOCK
DebugMessage() Params(...) One or more strings to be written. A space is inserted between each argument |
Writes a message to the debug console and/or lua logs. |
Example
CODE EXAMPLE BLOCK
DeleteCharacter() Paramsuserid - userid to player to delete charid - characterId record to delete |
Deletes a given character, requires a userId and valid characterId. |
Example
CODE EXAMPLE BLOCK
DelView() Paramseventid - event identifier of the view to remove |
Remove an object search subscription. |
Example
CODE EXAMPLE BLOCK
DestroyAllObjects() Paramsbool - ture/false to destroy no reset objects, defaults to false responseidentifier - the signal when this command has completed |
Sends a request to the object database. |
Example
CODE EXAMPLE BLOCK
DiceRoll() Paramsnumdice - number of dice to roll numsides - number of sides of the dice |
Rolls n-dice with k-sides (max 100 dice with 1,000 sides) and returns the summed total. |
Example
CODE EXAMPLE BLOCK