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

removeMissionEventHandler [type,index]

Operand types

[type,index]: Array

Type of returned value

Description

Removes mission event handler added by addMissionEventHandler.

When any handler is removed, all handler indices higher that the deleted one should be decremented.

Used In

Arma3

Example

removeMissionEventHandler ["Draw3D",1];


for "_i" from 0 to 4 do {
missionNamespace setVariable [
format ["handler%1",_i],addMissionEventHandler ["Loaded","hint ""_i"";"]];
};
removeMissionEventHandler ["Loaded",handler2]; //Remove the third index under type "Loaded"

Advertisement