Module
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