I'm running things from my own game, so I wasn't aware of that room actually. I'll take a look at that , thanks!
grakushkin
Recent community posts
Okay, in the playerweapons script, is global.weapon_data being initialized anywhere?
I am getting the following error when trying to pick up an object that should in theory put a "knife" weapon in the our global.player_weapons array.
___________________________________________
############################################################################################
ERROR in
action number 1
of Step Eventobj_player
for object obj_knife_pickup:
trying to index a variable which is not an array
at gml_Script_playerweapon_register_new_scr_playerweapons_gml_GlobalScript_scr_playerweapons (line 309) - array_copy(data,0,global.weapon_data[wid],0,PWD_LOCALDATA_MAX)
############################################################################################
gml_Script_playerweapon_register_new_scr_playerweapons_gml_GlobalScript_scr_playerweapons (line 309)
gml_Object_obj_knife_pickup_Collision_obj_player (line 7) - playerweapon_register_new(wid_KNIFE)
The relevant knife data is filled out in playerweapons_init_all().
Any idea whats going on?
Hi Yal, I've been going through the engine the last few days trying to understand and utilize some of it in my own survivors type game. For the most part its incredibly straightforward and easy to understand, but there are a few things here and there that I'm confused about and would love some clarification. Do you have a discord or anything like that?