Event Handlers – Category

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
==Introduction==
==Introduction==


Event handlers can be defined in unit config or by function [[addEventHandler]].<br>
Event handlers can be defined in unit or dialog config or by function [[addEventHandler]] or [[displaySetEventHandler]].<br>
Multiple handlers can be attached at one time.<br>
Multiple handlers can be attached at one time.<br>


'''MP notes''': "'''Killed'''" and "'''Hit'''" eventhandlers are executed where given unit is [[local]].<br>
'''MP notes''': "'''Killed'''" and "'''Hit'''" eventhandlers are executed where given unit is [[local]].<br>

Revision as of 16:38, 31 January 2007

Introduction

Event handlers can be defined in unit or dialog config or by function addEventHandler or displaySetEventHandler.
Multiple handlers can be attached at one time.

MP notes: "Killed" and "Hit" eventhandlers are executed where given unit is local.
All other eventhandlers are executed on all computers.
Events added by addEventHandler may be different on each computer.

For more information on Multiplayer locality see: Multiplayer Locality