mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Tweaked interaction conditions
This commit is contained in:
parent
890171e629
commit
554c6b14e0
@ -20,7 +20,6 @@ params ["_unit", "_vehicle"];
|
|||||||
private ["_deployedRopes"];
|
private ["_deployedRopes"];
|
||||||
|
|
||||||
_deployedRopes = _vehicle getVariable [QGVAR(deployedRopes), []];
|
_deployedRopes = _vehicle getVariable [QGVAR(deployedRopes), []];
|
||||||
if ((driver _vehicle != _unit) &&
|
if (!(_deployedRopes isEqualTo []) &&
|
||||||
{!(_deployedRopes isEqualTo [])} &&
|
|
||||||
{{_x select 6} count (_deployedRopes) == 0}) exitWith {true};
|
{{_x select 6} count (_deployedRopes) == 0}) exitWith {true};
|
||||||
false
|
false
|
||||||
|
@ -23,5 +23,5 @@ _deployedRopes = _vehicle getVariable [QGVAR(deployedRopes), []];
|
|||||||
if (isNumber (configFile >> "CfgVehicles" >> typeOf _vehicle >> QGVAR(enabled)) &&
|
if (isNumber (configFile >> "CfgVehicles" >> typeOf _vehicle >> QGVAR(enabled)) &&
|
||||||
{getNumber (configFile >> "CfgVehicles" >> typeOf _vehicle >> QGVAR(enabled)) == 1} &&
|
{getNumber (configFile >> "CfgVehicles" >> typeOf _vehicle >> QGVAR(enabled)) == 1} &&
|
||||||
{_deployedRopes isEqualTo []} &&
|
{_deployedRopes isEqualTo []} &&
|
||||||
{getPos _vehicle select 2 > 5}) exitWith {true};
|
{getPos _vehicle select 2 > 2}) exitWith {true};
|
||||||
false
|
false
|
||||||
|
@ -22,5 +22,6 @@ private ["_deployedRopes"];
|
|||||||
_deployedRopes = _vehicle getVariable [QGVAR(deployedRopes), []];
|
_deployedRopes = _vehicle getVariable [QGVAR(deployedRopes), []];
|
||||||
if ((driver _vehicle != _unit) &&
|
if ((driver _vehicle != _unit) &&
|
||||||
{!(_deployedRopes isEqualTo [])} &&
|
{!(_deployedRopes isEqualTo [])} &&
|
||||||
{{!(_x select 6)} count (_deployedRopes) > 0}) exitWith {true};
|
{{!(_x select 6)} count (_deployedRopes) > 0} &&
|
||||||
|
{getPos _vehicle select 2 > 2}) exitWith {true};
|
||||||
false
|
false
|
||||||
|
Loading…
Reference in New Issue
Block a user