Pixel-Composer/objects/o_process_handler/Create_0.gml

10 lines
373 B
Plaintext
Raw Normal View History

2023-06-17 14:30:49 +02:00
/// @description
#region process management
global.PROC_ID = bool(EnvironmentGetVariableExists("process_id"))? int64(EnvironmentGetVariable("process_id")) : 0;
EnvironmentSetVariable("process_id", string(global.PROC_ID + 1));
if (global.PROC_ID == 0)
instance_create(0, 0, o_main);
else if (global.PROC_ID == 1)
2023-06-17 14:30:49 +02:00
instance_create(0, 0, o_crash_handler);
#endregion