Allow Skipping LOS Check (Because of doors)

This commit is contained in:
PabstMirror
2015-05-02 00:13:09 -05:00
parent 334647fa60
commit d2fdeb5e96
4 changed files with 4 additions and 4 deletions

View File

@ -44,7 +44,7 @@ if (GVAR(openedMenuType) == 0 && vehicle ACE_player == ACE_player &&
if (_actualDistance > _distance) exitWith {true};
if (_actualDistance > 1.0) exitWith {
if ((_actualDistance > 1.0) && {!((_actionData select 9) select 4)}) exitWith {
// If distance to action is greater than 1.0 m, check LOS
_line = [_headPos call EFUNC(common,positionToASL), _pos call EFUNC(common,positionToASL), _object, ACE_player];
lineIntersects _line