Skip to content

Commit

Permalink
Merge pull request #52 from OverlordZorn/ula-interrupt-on-click
Browse files Browse the repository at this point in the history
ULA - Added: Interrupt Reveal when Firing
  • Loading branch information
OverlordZorn authored Sep 25, 2024
2 parents c6bc429 + 64c8d64 commit 4b6b39b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions addons/ula/functions/fn_action_statement.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ private _condition = {
params ["_args", "_elapsedTime", "_totalTime", "_errorCode"];
_args params ["_objSource", "_player", "_actionParams"];
_actionParams params ["_layerName", "_distance", "_time"];
private _maxDistance = (_objSource getVariable QGVAR(size)) * 2 max 5;
private _maxDistance = (_objSource getVariable QGVAR(size)) * 1.5 max 5;


_cond1 = missionNamespace getVariable [ ["CVO", "ula","remaining", _layerName] joinString "_", 0 ] > 0;
_cond2 = player distance _objSource < _maxDistance;
_cond1 && {_cond2}
missionNamespace getVariable [ ["CVO", "ula","remaining", _layerName] joinString "_", 0 ] > 0
&& { player distance _objSource < _maxDistance
&& { inputAction "defaultAction" == 0 }}
};


Expand Down

0 comments on commit 4b6b39b

Please sign in to comment.