mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
parent
c426bfc9c1
commit
8d2b612570
@ -34,7 +34,7 @@ _fnc_renderNearbyActions = {
|
||||
|
||||
// Quick oclussion test. Skip objects more than 1 m behind the camera plane
|
||||
_lambda = ((getPosASL _x) vectorDiff _cameraPos) vectorDotProduct _cameraDir;
|
||||
if (_lambda > -1) then {
|
||||
if ((_lambda > -1) && {!isObjectHidden _target}) then {
|
||||
_numInteractions = 0;
|
||||
// Prevent interacting with yourself or your own vehicle
|
||||
if (_target != ACE_player && {_target != vehicle ACE_player}) then {
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
params ["_player", "_target", "_alpha", "_heightOffset", "_iconType"];
|
||||
|
||||
if (_iconType == ICON_NONE) exitWith {}; //Don't waste time if not visable
|
||||
if ((_iconType == ICON_NONE) || {isObjectHidden _target}) exitWith {}; //Don't waste time if not visable
|
||||
|
||||
private ["_position", "_color", "_name", "_size", "_icon", "_scale"];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user