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