mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix captives 3den
This commit is contained in:
parent
ed96307f2f
commit
e6052aee1f
@ -8,7 +8,7 @@ class Cfg3DEN {
|
||||
control = "Checkbox";
|
||||
displayName = CSTRING(ModuleHandcuffed_DisplayName);
|
||||
tooltip = CSTRING(ModuleHandcuffed_Description);
|
||||
expression = QUOTE([ARR_2(_this,_value)]call FUNC(setHandcuffed));
|
||||
expression = QUOTE(if (_value) then {[ARR_3(objNull,[_this],true)] call FUNC(moduleHandcuffed)});
|
||||
typeName = "BOOL";
|
||||
condition = "objectBrain";
|
||||
defaultValue = false;
|
||||
@ -18,7 +18,7 @@ class Cfg3DEN {
|
||||
control = "Checkbox";
|
||||
displayName = CSTRING(ModuleSurrender_DisplayName);
|
||||
tooltip = CSTRING(ModuleSurrender_Description);
|
||||
expression = QUOTE([ARR_2(_this,_value)]call FUNC(setSurrendered));
|
||||
expression = QUOTE(if (_value) then {[ARR_3(objNull,[_this],true)] call FUNC(moduleSurrender)});
|
||||
typeName = "BOOL";
|
||||
condition = "objectBrain";
|
||||
defaultValue = false;
|
||||
|
@ -1,6 +1,7 @@
|
||||
/*
|
||||
* Author: PabstMirror
|
||||
* Module Function to make a unit handcuffed (can be called from editor)
|
||||
* Also used for threeden attribute expression with dummy Logic Object
|
||||
*
|
||||
* Arguments:
|
||||
* 0: The Module Logic <OBJECT>
|
||||
@ -11,7 +12,7 @@
|
||||
* Nothing
|
||||
*
|
||||
* Example:
|
||||
* Called from module
|
||||
* [objNull, [player], true] call ace_captives_fnc_moduleHandcuffed
|
||||
*
|
||||
* Public: No
|
||||
*/
|
||||
@ -28,8 +29,11 @@ if (!isServer) exitWith {};
|
||||
[{
|
||||
params ["_units"];
|
||||
{
|
||||
TRACE_2("event",_x,local _x);
|
||||
["SetHandcuffed", [_x], [_x, true]] call EFUNC(common,targetEvent);
|
||||
} forEach _units;
|
||||
}, [_units], 0.05] call EFUNC(common,waitAndExecute);
|
||||
|
||||
deleteVehicle _logic;
|
||||
if (!isNull _logic) then {
|
||||
deleteVehicle _logic;
|
||||
};
|
||||
|
@ -1,6 +1,7 @@
|
||||
/*
|
||||
* Author: PabstMirror
|
||||
* Module Function to make a unit surrender (can be called from editor)
|
||||
* Also used for threeden attribute expression with dummy Logic Object
|
||||
*
|
||||
* Arguments:
|
||||
* 0: The Module Logic <OBJECT>
|
||||
@ -11,7 +12,7 @@
|
||||
* Nothing
|
||||
*
|
||||
* Example:
|
||||
* Called from module
|
||||
* [objNull, [player], true] call ace_captives_fnc_moduleSurrender
|
||||
*
|
||||
* Public: No
|
||||
*/
|
||||
@ -28,8 +29,11 @@ if (!isServer) exitWith {};
|
||||
[{
|
||||
params ["_units"];
|
||||
{
|
||||
TRACE_2("event",_x,local _x);
|
||||
["SetSurrendered", [_x], [_x, true]] call EFUNC(common,targetEvent);
|
||||
} forEach _units;
|
||||
}, [_units], 0.05] call EFUNC(common,waitAndExecute);
|
||||
|
||||
deleteVehicle _logic;
|
||||
if (!isNull _logic) then {
|
||||
deleteVehicle _logic;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user