addEventHandler: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 2: Line 2:




== '''''object'' addEventHandler ''handler''''' ==
<h2 style="color:#000066">'''''object'' addEventHandler ''handler'''''</h2>





Revision as of 14:30, 15 April 2006

back to COMREF


object addEventHandler handler


Operand types:

object: Object

handler: Array

Type of returned value:

Number

Description:

Format of handler is [type,command].

Check scripting topic Event handlers for more information.

Index of currently added handler is returned.


Example:

player addEventHandler ["killed",{_this exec "playerKilled.sqs"}]