sunflowers-in-the-rain/objects/obj_marisa_missile/Create_0.gml

8 lines
193 B
Plaintext

target_delay = SHOT_MISSILE_TARGET_DELAY;
if ( instance_exists( obj_enemy_parent ) ) {
target = instance_nearest(x,y, obj_enemy_parent);
} else {
target = instance_nearest(x,y, obj_wall);
}