if on>0 {
nearest=instance_nearest(x,y,combatants )
mp_potential_settings(100,100,400,true)
mp_potential_step_object(nearest.x,nearest.y,1,Wallp & ammocrate)
image_angle=direction
USPc.x=x
USPc.y=y
USPc.uspp=instance_id
USPc.direction=direction
}
else
exit
Basicly, I need the nearest instance to be the offspring of 'combatants', but not be the object calling the event as it is an offspring of 'combatants' This is for a Free For All match and this is the code for the step event for one of the AIs.Is there any code or variable like: other_offspring ?
I have tried different things but cannot get them to work. Any ideas how I could fix this?
Edited by Sprocket Games, 15 April 2012 - 10:17 PM.











