ON COMPONENT LOAD

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:

<Events>
        <Event name="ON_COMPONENT_LOAD"        bind="OnComponentLoad" />
</Events>
  • 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
end