Skip to content

Commit

Permalink
Update XEH_preInit.sqf
Browse files Browse the repository at this point in the history
Fixed simulationEnabled and inRangeOfArtillery and preInit.sqf
  • Loading branch information
nk3nny committed Apr 18, 2021
1 parent 905c3f6 commit bc83e5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion addons/wp/XEH_preInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ if (isServer) then {
private _artillerySelected = _artillery select {
canFire _x
&& {unitReady _x}
&& {_pos inRangeOfArtillery [[_x], getArtilleryAmmo [_x] select 0]};
&& {simulationEnabled _x}
&& {_pos inRangeOfArtillery [[_x], getArtilleryAmmo [_x] param [0, ""]]};
};
_artillerySelected = [_artillerySelected, [], { _pos distance _x }, "ASCEND"] call BIS_fnc_sortBy;
private _gun = _artillerySelected select 0;
Expand Down

0 comments on commit bc83e5b

Please sign in to comment.