You should have a live_call in the enemies_struct! Won’t get changed otherwise
Viewing post in how do you update structs in a script?
I've already tried that:
but I just end up getting the error message:
___________________________________________
############################################################################################
ERROR in action number 1
of Create Event for object <undefined>:
global variable name 'live_request_guid' index (104394) not set before reading it.
at gml_Script_live_call (line 12300) - if(live_request_guid==undefined){
############################################################################################
gml_Script_live_call (line 12300)
gml_Script_enemies_struct (line 165) - if (live_call()) return live_result;
gml_GlobalScript_GameData (line 356) - enemies_struct()
🤔
Ah, I suppose your script runs before GMLive’s initialization? You could make it
if (!live_enabled) enemies_struct();
in the script and add
if (live_enabled) enemies_struct();
to the end of obj_gmlive’s Create.
Or rename the “GMLive” script to “__GMLive” so that it runs before the rest. Kind of silly but that’s the world we live in starting with last year’s updates.