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:
Mark Ruffner 2016-08-07 12:50:58 -05:00 committed by PabstMirror
parent 919c8469de
commit ff297e307b

View File

@ -11,7 +11,7 @@ class Cfg3DEN {
expression = QUOTE(if (_value) then {[ARR_3(objNull,[_this],true)] call FUNC(moduleHandcuffed)}); expression = QUOTE(if (_value) then {[ARR_3(objNull,[_this],true)] call FUNC(moduleHandcuffed)});
typeName = "BOOL"; typeName = "BOOL";
condition = "objectBrain"; condition = "objectBrain";
defaultValue = false; defaultValue = "(false)";
}; };
class ace_isSurrendered { class ace_isSurrendered {
property = QUOTE(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)}); expression = QUOTE(if (_value) then {[ARR_3(objNull,[_this],true)] call FUNC(moduleSurrender)});
typeName = "BOOL"; typeName = "BOOL";
condition = "objectBrain"; condition = "objectBrain";
defaultValue = false; defaultValue = "(false)";
}; };
}; };
}; };