D
DeadZombie
Guest
Hello, everyone!
I'm trying to understand the instance creation order and can't figure out why I can't read a variable in my case.
I've got object "obj_current_weapon" where I try to do this:
"obj_no_weapon" code:
And when I start the game I got an error:
Variable obj_no_weapon.<unknown variable>(100025, -2147483648) not set before reading it.
All objects are in one room layer. What did I miss? I understand that obj_no_weapon's variables were not initialized when I was trying to read them, but why?
I'm trying to understand the instance creation order and can't figure out why I can't read a variable in my case.
I've got object "obj_current_weapon" where I try to do this:
Code:
current_weapon_ammo = obj_no_weapon.ammo;
Code:
entity = "no_weapon";
type = "weapon";
ammo = obj_no_ammo;
Variable obj_no_weapon.<unknown variable>(100025, -2147483648) not set before reading it.
All objects are in one room layer. What did I miss? I understand that obj_no_weapon's variables were not initialized when I was trying to read them, but why?