I need to turn on a function or just make something happen when my player object gets close enough to my one of my AI objects but have no clue how to make it work? PS I use lite-c...
Re: How to turn something on when object comes too close to AI obj?
[Re: Dontstealmyfood]
#353909 01/14/1104:5601/14/1104:56
vec_dist() is the best. You can also use it instead of c_scan sometimes when you only have a specific entity in mind for scanning. Just like this AI example. Your enemies could scan every frame for the player, which is slow, or they could just check how far away he is, which is fast.