S
Skyeward
Guest
Probably a badly worded title, I'll explain better below:
Let's say I have obj_player and obj_weapon. obj_player has a variable called weaponID, which is the instance id of obj_weapon. To set or change this id I can access it from other objects via obj_player.weaponID, but what if I want to change variables inside obj_weapon itself? Can you chain together these periods so as to say obj_player.weaponID.ammoCount for example to change variables in the weapon? Or is this way of accessing variables limited to just one period?
Thanks!
~Skyeward
Let's say I have obj_player and obj_weapon. obj_player has a variable called weaponID, which is the instance id of obj_weapon. To set or change this id I can access it from other objects via obj_player.weaponID, but what if I want to change variables inside obj_weapon itself? Can you chain together these periods so as to say obj_player.weaponID.ammoCount for example to change variables in the weapon? Or is this way of accessing variables limited to just one period?
Thanks!
~Skyeward