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?