V
vgoat
Guest
So I have a problem I am using my path in a tower defense game and I want to implement targeting of specific enemies in a specific point on the path. I think path_position has something to do with it but, I cant figure out how to check which instance of enemy_parent (all enemies) is closest to the end of the path. Value of 1 in the path_position... If I can use this I can get the id of the object closest to the end of the path. Which I could set a tower to target that or the beginning enemy with some global value called say, global.EnemyTarget which will be in play with my selection system for choosing that. Once again I am just looking how to get the id of the object the is closest on the path (Gamemaker Paths mine is called Path_Something). Any help would be super helpful!