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