Hi All,
currently experimenting with some stuff in LUA.
I want to know if theres a command or a way to get the entity's index based on its obj value, the one stored in the g_Entity global. So in the screen shot it would be something like this (I'm guessing):
g_Entity[3]['obj'] = 70003
so if I know that the value is 70003, using the ObjectPlayerLookingAt() function in AmenMoses' utillib.lua, how can I then find out what it's index is?
Basically I am trying to find out how far the current entity being looked at is away from the player, maybe something like this: g_Entity[entityID]['plrdist']
This is probably a bad/long winded solution so if anyone can offer some advice, i would very much appreciate it
Thanks