Jump to content

GetDistanceToEntity not documented?


Recommended Posts

i have seen the GetDistanceToEntity function in the GoblinAI.lua file but havent found it in the Command Reference Documentation.

 

Maybe i am blind but it is really useful and should be in there. :)

Link to comment
Share on other sites

i think you meant DistanceToPoint. True that would work but is a lot more to write.

 

like

self.entity:GetPosition():DistanceToPoint(self.target:GetPosition())

 

not sure if chaining functions in lua works this way

Link to comment
Share on other sites

  • 4 weeks later...
  • 3 months later...
Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...