addEventHandler: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
Line 23: | Line 23: | ||
'''Description:''' | '''Description:''' | ||
Format of handler is '''''[type,command]'''''. | Format of handler is '''''[type ([[String]]),command ([[Code]])]'''''. | ||
Check scripting topic [[Event handlers]] for more information. | Check scripting topic [[Event handlers]] for more information. |
Revision as of 12:33, 13 July 2006
object addEventHandler handler
Operand types:
object: Object
handler: Array
Type of returned value:
Compatibility:
Added in version 1.85
Description:
Format of handler is [type (String),command (Code)].
Check scripting topic Event handlers for more information.
Index of currently added handler is returned.
Example:
player addEventHandler ["killed",{_this exec "playerKilled.sqs"}]