• Hey! Guest! The 39th GMC Jam will take place between November 26th, 12:00 UTC and November 30th, 12:00 UTC. Why not join in! Click here to find out more!

instance_nearest work on deactived objects?

obscene

Member
Nope. Just realize instances aren't deactivated until the end of the event ( I think ) so you should account for that if you are trying to deactivate an instance and then immediately check.
 

Ggbah

Member
So,
//at start
thisMarker = instance_create(x,y,marker) (CLOSER)
instance_deactivate_object(thisMarker)

thisMarker2 = instance_create(x,y,marker) (FARTHER)


//later
Object(monster){
If(instance_nearest(marker) !=noone){
//object exists
//and it will only return thisMarker2, because it cant see the closer "thisMarker", correct?
}else{
//object does not exist
}
}
 
Top