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

unit addMPEventHandler [event, action]

Operand types

unit: Object
[event, action] : Array

Type of returned value

Description

The format of handler is [type,command].
The index of the current handler is returned.

Used In

Arma2OA

Example

_idx = player addMPEventHandler ["mpkilled", {_nul = _this execVM "playerkilled.sqf";}];

Advertisement