Lua Hooks

From SOPWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 01:25, 16 June 2008 (edit)
Drunken F00l (Talk | contribs)
(New page: Hooks allow Lua scripts to hook into game events and other functions. When a game event occurs, the corresponding hooks are executed with that event. Hooks can be added with the [[Hook.Ad...)
← Previous diff
Revision as of 01:26, 16 June 2008 (edit) (undo)
Drunken F00l (Talk | contribs)
m (Previous page link)
Next diff →
Line 1: Line 1:
 +{{CatPrev|Main Page}}
 +
Hooks allow Lua scripts to hook into game events and other functions. When a game event occurs, the corresponding hooks are executed with that event. Hooks allow Lua scripts to hook into game events and other functions. When a game event occurs, the corresponding hooks are executed with that event.

Revision as of 01:26, 16 June 2008

Main Page Previous category:
Main Page

Hooks allow Lua scripts to hook into game events and other functions. When a game event occurs, the corresponding hooks are executed with that event.

Hooks can be added with the hook.Add function. The function takes a hook name which can be any from the list below.

Personal tools