mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
ff297e307b
* 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
31 lines
1.3 KiB
C++
31 lines
1.3 KiB
C++
class Cfg3DEN {
|
|
class Object {
|
|
class AttributeCategories {
|
|
class ace_attributes {
|
|
class Attributes {
|
|
class ace_isHandcuffed {
|
|
property = QUOTE(ace_isHandcuffed);
|
|
control = "Checkbox";
|
|
displayName = CSTRING(ModuleHandcuffed_DisplayName);
|
|
tooltip = CSTRING(ModuleHandcuffed_Description);
|
|
expression = QUOTE(if (_value) then {[ARR_3(objNull,[_this],true)] call FUNC(moduleHandcuffed)});
|
|
typeName = "BOOL";
|
|
condition = "objectBrain";
|
|
defaultValue = "(false)";
|
|
};
|
|
class ace_isSurrendered {
|
|
property = QUOTE(ace_isSurrendered);
|
|
control = "Checkbox";
|
|
displayName = CSTRING(ModuleSurrender_DisplayName);
|
|
tooltip = CSTRING(ModuleSurrender_Description);
|
|
expression = QUOTE(if (_value) then {[ARR_3(objNull,[_this],true)] call FUNC(moduleSurrender)});
|
|
typeName = "BOOL";
|
|
condition = "objectBrain";
|
|
defaultValue = "(false)";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|