addEventHandler: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 26: | Line 26: | ||
'''Example:''' | '''Example:''' | ||
player '''addEventHandler''' ["killed",{_this exec "playerKilled.sqs"}] | player '''addEventHandler''' ["killed",{_this [[exec]] "playerKilled.sqs"}] |
Revision as of 15:08, 15 April 2006
back to COMREF
object addEventHandler handler
Operand types:
object: Object
handler: Array
Type of returned value:
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"}]