From Firefall Wiki
Jump to: navigation, search

For any given plugin, Firefall will only track events listed within the <events> </events> tags as such in the .XML file:

        <Event name="ON_COMPONENT_LOAD"        bind="OnComponentLoad" />
  • name lists the event to be tracked.
  • bind lists the name of the function (defined in Lua) to trigger when event in name occurs. Some events pass an object to the function as an argument, which serves to provide some info about the event.

Lua Example:

function OnComponentLoad()
     -- do stuff