Well I'm trying to make this gun reload and have ammo.
Basically the problem is, when you're out of ammo, if you remount the gun, you can fire one shot then it needs to reload.
But I checked and every time I remount(by switching to another gun and back) it does the "activate" state then it goes to straight to "ready"
It's supposed to go to "ammocheck" since it says
stateTransitionOnTimeout[0] = "AmmoCheck";
The activate state says nothing about the ready one and it "onAmmoCheck" never fires
What's wrong?
Whole code:
http://pastebin.com/JX0fTTGN