mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix for #1665
This commit is contained in:
parent
22d41797ac
commit
186d4d0583
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Author: SilentSpike
|
||||
* Flips the capture state of the unit the module is attached to.
|
||||
* Flips the capture state of the unit the module is placed on.
|
||||
*
|
||||
* Arguments:
|
||||
* 0: The module logic <LOGIC>
|
||||
@ -16,18 +16,20 @@
|
||||
#include "script_component.hpp"
|
||||
|
||||
PARAMS_3(_logic,_units,_activated);
|
||||
private ["_unit","_captive"];
|
||||
private ["_mouseOver","_unit","_captive"];
|
||||
|
||||
if (!_activated) exitWith {};
|
||||
|
||||
if (isNil QEFUNC(captives,setHandcuffed)) then {
|
||||
[LSTRING(RequiresAddon)] call EFUNC(common,displayTextStructured);
|
||||
} else {
|
||||
_unit = attachedTo _logic;
|
||||
_mouseOver = GETMVAR(bis_fnc_curatorObjectPlaced_mouseOver,[""]);
|
||||
|
||||
if (isNull _unit) then {
|
||||
if ((_mouseOver select 0) != "OBJECT") then {
|
||||
[LSTRING(NothingSelected)] call EFUNC(common,displayTextStructured);
|
||||
} else {
|
||||
_unit = effectivecommander (_mouseOver select 1);
|
||||
|
||||
if !(_unit isKindOf "CAManBase") then {
|
||||
[LSTRING(OnlyInfantry)] call EFUNC(common,displayTextStructured);
|
||||
} else {
|
||||
|
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Author: SilentSpike
|
||||
* Flips the surrender state of the unit the module is attached to.
|
||||
* Flips the surrender state of the unit the module is placed on.
|
||||
*
|
||||
* Arguments:
|
||||
* 0: The module logic <LOGIC>
|
||||
@ -16,18 +16,20 @@
|
||||
#include "script_component.hpp"
|
||||
|
||||
PARAMS_3(_logic,_units,_activated);
|
||||
private ["_unit","_surrendering"];
|
||||
private ["_mouseOver","_unit","_surrendering"];
|
||||
|
||||
if (!_activated) exitWith {};
|
||||
|
||||
if (isNil QEFUNC(captives,setSurrendered)) then {
|
||||
[LSTRING(RequiresAddon)] call EFUNC(common,displayTextStructured);
|
||||
} else {
|
||||
_unit = attachedTo _logic;
|
||||
_mouseOver = GETMVAR(bis_fnc_curatorObjectPlaced_mouseOver,[""]);
|
||||
|
||||
if (isNull _unit) then {
|
||||
if ((_mouseOver select 0) != "OBJECT") then {
|
||||
[LSTRING(NothingSelected)] call EFUNC(common,displayTextStructured);
|
||||
} else {
|
||||
_unit = effectivecommander (_mouseOver select 1);
|
||||
|
||||
if !(_unit isKindOf "CAManBase") then {
|
||||
[LSTRING(OnlyInfantry)] call EFUNC(common,displayTextStructured);
|
||||
} else {
|
||||
|
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Author: SilentSpike
|
||||
* Flips the unconscious state of the unit the module is attached to.
|
||||
* Flips the unconscious state of the unit the module is placed on.
|
||||
*
|
||||
* Arguments:
|
||||
* 0: The module logic <LOGIC>
|
||||
@ -16,18 +16,20 @@
|
||||
#include "script_component.hpp"
|
||||
|
||||
PARAMS_3(_logic,_units,_activated);
|
||||
private ["_unit","_conscious"];
|
||||
private ["_mouseOver","_unit","_conscious"];
|
||||
|
||||
if (!_activated) exitWith {};
|
||||
|
||||
if (isNil QEFUNC(medical,setUnconscious)) then {
|
||||
[LSTRING(RequiresAddon)] call EFUNC(common,displayTextStructured);
|
||||
} else {
|
||||
_unit = attachedTo _logic;
|
||||
_mouseOver = GETMVAR(bis_fnc_curatorObjectPlaced_mouseOver,[""]);
|
||||
|
||||
if (isNull _unit) then {
|
||||
if ((_mouseOver select 0) != "OBJECT") then {
|
||||
[LSTRING(NothingSelected)] call EFUNC(common,displayTextStructured);
|
||||
} else {
|
||||
_unit = effectivecommander (_mouseOver select 1);
|
||||
|
||||
if !(_unit isKindOf "CAManBase") then {
|
||||
[LSTRING(OnlyInfantry)] call EFUNC(common,displayTextStructured);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user