Warning: file_put_contents(/ff_6c15ae82720436bdc3d32df2dc336c16b833b91bf80168b0.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