Hello
I am in the process of porting my game from Game Maker to C2 and all has been smooth so far except for this issue
I need the player to shoot an object which will lock on to the nearest enemy of a specific type and then move towards it until they collide
So basically i need to
1. Find the nearest enemy
2. Make sure the missile follows it
3. Make the missile continue in a straight line if that enemy is destroyed before it hits its target
Apologies if this is already covered somewhere but i looked through the FAQ and did a search in this section but didn't find anything i could use
Any help will be much appreciated