Difference between revisions of "Module"
(Created page with "== What Makes a Module == A Module is a script that is attached to a GameObj in one of three ways. ==== Template ==== Given I have 'name_of_script_file.lua' in my scrip...") |
|||
Line 29: | Line 29: | ||
# /attach name_of_script_file | # /attach name_of_script_file | ||
# Target GameObj | # Target GameObj | ||
+ | [[Category:Architecture]][[Category:Modding]] |
Latest revision as of 22:03, 29 October 2016
What Makes a Module
A Module is a script that is attached to a GameObj in one of three ways.
Template
Given I have 'name_of_script_file.lua' in my scripts folder, in my template_file.xml I can:
<ScriptEngineComponent> <LuaModule Name="name_of_script_file" /> </ScriptEngineComponent>
AddModule
Given I have 'name_of_script_file.lua' in my scripts folder, in another running Module I can:
gameObj:AddModule("name_of_script_file")
God characters
Given I have 'name_of_script_file.lua' in my scripts folder, a God character can:
- /info
- type in "name_of_script_file" without quotes
- click 'Attach'
or
- /attach name_of_script_file
- Target GameObj