Originally Posted by Garkin
You can use for example:
Lua Code:
if PLAYER_TO_PLAYER:IsReticleTargetInteractable() then --do stuff end
Or:
Lua Code:
if DoesUnitExist("reticleoverplayer") and IsUnitOnline("reticleoverplayer") and GetUnitAlliance("player") == GetUnitAlliance("reticleoverplayer") then --do stuff end
|
Hmmm, I tried both of these and they do the same thing as the code I've tried - they trigger when the reticle is aimed at a player regardless of how far away the player is. I need some way to know when the interaction menu is available. Btw, how did you know about the PLAYER_TO_PLAYER table? Google doesn't have much to say about that.
Thanks!