Hello, I'm setting up some code in a parent event to permanently despawn objects in non-persistent rooms with. What i need to do in order for this to work is set the variable "counter" to whatever variable i input from instance creation code, but not what that variable is actually equal to (true, false, ect.), and then be able to check/modify it accordingly. Is there a GM function or anything that'll let me pull this off?
/// Object // Create event counter = noone; // Destroy event if (counter != noone) counter = true; /// Room // Instance creation code counter = obj_player_stats.counter0; if (counter == true) instance_destroy();