View Single Post
07/27/14, 04:59 PM   #3
Aetheron
 
Aetheron's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 32
Originally Posted by Garkin View Post
You can use for example:
Lua Code:
  1. if PLAYER_TO_PLAYER:IsReticleTargetInteractable() then
  2.    --do stuff
  3. end

Or:
Lua Code:
  1. if DoesUnitExist("reticleoverplayer") and IsUnitOnline("reticleoverplayer") and GetUnitAlliance("player") == GetUnitAlliance("reticleoverplayer") then
  2.    --do stuff
  3. 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!
  Reply With Quote