01-27-2017, 07:53 PM
I'm creating an add-on mod where I would like to get the distance to an enemy. After researching the documentation I have been trying to use the Player_GetDistanceToEntity(const tString &in asEntity) function where asEntity is the entity's name. But I'm having a hard time figuring out what I should use as the entity's name.
For example in Chapter 1 in Upsilon Awake there is an enemy according to the Wiki called 'Construct'. I've used Construct, construct, construct_theta, infected_robot, etc. as input into the function but I always get a entity does not exist in my debug messages.
I even tried loading up the map in the Level Editor to see if I could find it, but the map is so cluttered that it made this task pretty much impossible.
So does anyone know where I could find what the asEntity names should be or any better methods to find the distance to enemy?
For example in Chapter 1 in Upsilon Awake there is an enemy according to the Wiki called 'Construct'. I've used Construct, construct, construct_theta, infected_robot, etc. as input into the function but I always get a entity does not exist in my debug messages.
I even tried loading up the map in the Level Editor to see if I could find it, but the map is so cluttered that it made this task pretty much impossible.
So does anyone know where I could find what the asEntity names should be or any better methods to find the distance to enemy?