Fandom

HammerWiki

CallFunction

6,449pages on
this wiki
Add New Page
Comments0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

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" />

Also on Fandom

Random Wiki