mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
13 lines
496 B
Plaintext
13 lines
496 B
Plaintext
|
// by commy2
|
||
|
|
||
|
[_this select 0, "knockedOut", {
|
||
|
if (local (_this select 0)) then {_this call AGM_Captives_fnc_handleKnockedOut};
|
||
|
}] call AGM_Core_fnc_addCustomEventhandler;
|
||
|
|
||
|
[_this select 0, "wokeUp", {
|
||
|
if (local (_this select 0)) then {_this call AGM_Captives_fnc_handleWokeUp};
|
||
|
}] call AGM_Core_fnc_addCustomEventhandler;
|
||
|
|
||
|
// prevent players from throwing grenades
|
||
|
[_this select 0, "Throw", {(_this select 1) getVariable ["AGM_isCaptive", false]}, {}] call AGM_Core_fnc_addActionEventhandler;
|