Blockland Forums > Modification Help
Manually Change Image's State?
Rally:
--- Quote from: otto-san on November 25, 2017, 05:14:45 PM ---you could make use of stateTransitionOnAmmo/stateTransitionOnNoAmmo and then use setImageAmmo(slot,x) to trigger the change (more info here)
--- End quote ---
There's also stateTransitionOnLoaded and stateTransitionOnNotLoaded which can be changed with a method similar to like setImageLoaded
Shift Kitty:
--- Quote from: Rally on November 25, 2017, 10:40:47 PM ---There's also stateTransitionOnLoaded and stateTransitionOnNotLoaded which can be changed with a method similar to like setImageLoaded
--- End quote ---
Though do take note, setting ammo false also sets loaded false, if I recall. Could be the other way around. I forget.
Found that out when experimenting with giving weapons an 'attack speed' trait that could be changed on the player.
Rally:
--- Quote from: Shift Kitty on November 25, 2017, 11:30:07 PM ---Though do take note, setting ammo false also sets loaded false, if I recall. Could be the other way around. I forget.
--- End quote ---
Wow. That explains so much stuff I've had with the state system lmfao