mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fixed conditions
This commit is contained in:
@ -28,10 +28,10 @@ if (isNil QEFUNC(medical,setUnconscious)) then {
|
|||||||
if (isNull _unit) then {
|
if (isNull _unit) then {
|
||||||
["Place on a unit"] call DEFUNC(common,displayTextStructured);
|
["Place on a unit"] call DEFUNC(common,displayTextStructured);
|
||||||
} else {
|
} else {
|
||||||
if (!_unit isKindOf "CAManBase") then {
|
if !(_unit isKindOf "CAManBase") then {
|
||||||
["Unit must be infantry"] call DEFUNC(common,displayTextStructured);
|
["Unit must be infantry"] call DEFUNC(common,displayTextStructured);
|
||||||
} else {
|
} else {
|
||||||
if (!alive _unit) then {
|
if !(alive _unit) then {
|
||||||
["Unit must be alive"] call DEFUNC(common,displayTextStructured);
|
["Unit must be alive"] call DEFUNC(common,displayTextStructured);
|
||||||
} else {
|
} else {
|
||||||
_conscious = GETVAR(_unit,ACE_isUnconscious,false);
|
_conscious = GETVAR(_unit,ACE_isUnconscious,false);
|
||||||
|
@ -28,10 +28,10 @@ if (isNil QEFUNC(captives,setSurrendered)) then {
|
|||||||
if (isNull _unit) then {
|
if (isNull _unit) then {
|
||||||
["Place on a unit"] call DEFUNC(common,displayTextStructured);
|
["Place on a unit"] call DEFUNC(common,displayTextStructured);
|
||||||
} else {
|
} else {
|
||||||
if (!_unit isKindOf "CAManBase") then {
|
if !(_unit isKindOf "CAManBase") then {
|
||||||
["Unit must be infantry"] call DEFUNC(common,displayTextStructured);
|
["Unit must be infantry"] call DEFUNC(common,displayTextStructured);
|
||||||
} else {
|
} else {
|
||||||
if (!alive _unit) then {
|
if !(alive _unit) then {
|
||||||
["Unit must be alive"] call DEFUNC(common,displayTextStructured);
|
["Unit must be alive"] call DEFUNC(common,displayTextStructured);
|
||||||
} else {
|
} else {
|
||||||
_surrendering = GETVAR(_unit,EGVAR(captives,isSurrendering),false);
|
_surrendering = GETVAR(_unit,EGVAR(captives,isSurrendering),false);
|
||||||
|
Reference in New Issue
Block a user