Wikia

HammerWiki

CallFunction

6,440pages on
this wiki
Comments0

CallFunction is a MOD File element. It is used to declare that a specific function should be called. The events that actually use CallFunction are the parent elements such as OnInitialize, OnUpdate, and OnShutdown.

AttributesEdit

name
name of the function to be executed

ParentsEdit

ChildrenEdit

None known.

ExampleEdit

When SuperMOD is a table with a record called Initialize defined as a function, as here:

SuperMOD = {}
SuperMOD.Initialize = function () print("I am SuperMOD!")

The CallFunction element will look like this:

<CallFunction name="SuperMOD.Initialize" />

Around Wikia's network

Random Wiki