M
Markus Villalobos
Guest
Hello everyone.
Is there a way to run the instance creation code of an instance?
Something like this:
instance_run_creation_code();
I'm trying to write a script that simulates a room restarting, like this:
///scr_simulate_room_restart()
event_perform(ev_destroy,0);
event_perform(ev_room_end,0);
event_perform(ev_create,0);
//Instance Creation Code
event_perform(ev_room_start,0);
As you can see, I need the instance creation code to run after the create event, and before the room start event.
Any ideas on how to achieve this?
Thanks!
Is there a way to run the instance creation code of an instance?
Something like this:
instance_run_creation_code();
I'm trying to write a script that simulates a room restarting, like this:
///scr_simulate_room_restart()
event_perform(ev_destroy,0);
event_perform(ev_room_end,0);
event_perform(ev_create,0);
//Instance Creation Code
event_perform(ev_room_start,0);
As you can see, I need the instance creation code to run after the create event, and before the room start event.
Any ideas on how to achieve this?
Thanks!