E
Elgarion
Guest
Good morning everybody !
I need some help to figure out how to enlist scripts. I tried this :
I get this error : call to non-existent script.
Can someone help me please ?
Have a nice day !!!
I need some help to figure out how to enlist scripts. I tried this :
Code:
//=========== in my first room create
global.My_List = ds_list_create();
ds_list_add(
global.My_List,
Scr_Sript1,
Scr_Sript2,
Scr_Sript3,
);
//============ then in another room :
// I find the right script depending of the mission number
var My_mission_number = mission_number ;
var scr_scriptName = ds_list_find_index(global.My_List, My_mission_number-1);
// then I launch the script
var scriptToCall = asset_get_index(scr_scriptName);
script_execute(scriptToCall);
Can someone help me please ?
Have a nice day !!!