mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix the captive module from creating attributes when not needed (#4213)
* Fix default values Fix default values, so we don't get two custom attributes per unit, even when the unit is not handcuffed/surrendered * Add parentheses to avoid conversion
This commit is contained in:
parent
919c8469de
commit
ff297e307b
@ -11,7 +11,7 @@ class Cfg3DEN {
|
||||
expression = QUOTE(if (_value) then {[ARR_3(objNull,[_this],true)] call FUNC(moduleHandcuffed)});
|
||||
typeName = "BOOL";
|
||||
condition = "objectBrain";
|
||||
defaultValue = false;
|
||||
defaultValue = "(false)";
|
||||
};
|
||||
class ace_isSurrendered {
|
||||
property = QUOTE(ace_isSurrendered);
|
||||
@ -21,7 +21,7 @@ class Cfg3DEN {
|
||||
expression = QUOTE(if (_value) then {[ARR_3(objNull,[_this],true)] call FUNC(moduleSurrender)});
|
||||
typeName = "BOOL";
|
||||
condition = "objectBrain";
|
||||
defaultValue = false;
|
||||
defaultValue = "(false)";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user