Difference between revisions of "SetEventHandler"

Jump to navigation Jump to search
265 bytes removed ,  23:00, 3 January 2012
m
no edit summary
imported>8asrun6aer
m
imported>8asrun6aer
m
begin gamemode
if getGameRestarted
SetEventHandler "OnHit" FnOnHitByPlayer "object"::PlayerRef
SetEventHandler "OnMagicEffectHit" FnOnPlayerRestoreHealth "ref"::PlayerRef "object"::"REHE"
SetEventHandler "LoadGame" FnOnLoadGame
endif
</pre>
==Notes==
_none_
* When compiling scripts with this function, CS may generate a "expected string" error for the "filter" arguments. Generally, this error can be ignored if the script still successfully compiles. Be sure to run a live test of any script to ensure it runs in-game successfully.
 
==See Also==
Anonymous user

Navigation menu