Difference between revisions of "NCScriptsObjectFunctions"

From Legends of Aria Admin and Modding Wiki
Jump to: navigation, search
Line 7: Line 7:
 
|}
 
|}
 
</center>
 
</center>
 +
<p style="width: 60%;margin: 0 auto">Example of adding a module without a initializer table</p>
 +
<div style="width:60%;margin: 0 auto">
 +
  Code Block
 +
  Code Block
 +
  Code Block
 +
</div>
 +
<p style="width: 60%;margin: 0 auto">Example of adding a module with a initializer table</p>
 +
<div style="width:60%;margin: 0 auto">
 +
  Code Block
 +
  Code Block
 +
  Code Block
 +
</div>
 +
<p style="width: 60%;margin: 0 auto">Example of Handling the initializer table on an object</p>
 
<div style="width:60%;margin: 0 auto">
 
<div style="width:60%;margin: 0 auto">
 
   Code Block
 
   Code Block

Revision as of 08:40, 8 November 2019

Object Functions & 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

AddModule(filename,table)

filename - Name of script file
table - Initializer table
The table may be omitted but allows you to send a table package to the script, then use the ModuleAttached Event to handle the table package.

Example of adding a module without a initializer table

 Code Block
 Code Block
 Code Block

Example of adding a module with a initializer table

 Code Block
 Code Block
 Code Block

Example of Handling the initializer table on an object

 Code Block
 Code Block
 Code Block