Tweaked interaction conditions

This commit is contained in:
BaerMitUmlaut 2015-10-06 17:40:28 +02:00
parent 890171e629
commit 554c6b14e0
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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

View File

@ -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