So, I'm back with more questions if someone can help at all please (sorry).
I can get the x, y and z of an actor from the Pos()
and elsewhere I've used getNearestEnemyGroup etc which assesses the distance between airgroups and the player and returns the one with the lowest....
But what I can't figure out is if there is an easy way to return the distance in metres between two Pos(), either 3d , or just x and y.
Peeking at the code I see various things relating to distance, but too many to immediately understand what is what and what I should be focusing on. And I saw someone seemingly working out trignonometry values, is this still necessary?
I'm hoping there is some way to simply call a method and give it the ref/from and it will politely return the distance in metres for me....
At the moment I am looking to get the nearest enemy airgroup (which I can do) but then also return the distance to it in metres?
Bookmarks