Oh, and on this line:

if(vec_dist(me.x, plBiped01_entity.x) > 150)

you need to change the "plBiped01_entity.x" part to "Max2_MDL_001.x" instead, the name of your pointer to the entity.


"You level up the fastest and easiest if you do things at your own level and no higher or lower" - useful tip My 2D game - release on Jun 13th; My tutorials