Warning: file_put_contents(/ff_c00b2627c8830037dfd3f48813035e01ea93ced6a6bf80e6.php): failed to open stream: Permission denied in /home/ofpecsav/public_html/forum/Sources/Subs-ForumFirewall.php on line 1619
addEventHandler - OFPEC Scripting Command Reference | OFPEC The Editing Center

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.

Used In

OFP/ArmA

Example

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

Advertisement