Need Help making a toggle button for rapid fire.
IVER Industries
Member Posts: 29
So ive got a global attribute called rapid fire that the player actor responds to accordingly but i need to set up a toggle so that the player can turn it off and on. help would be apreciated i tried making one but it failed horribly.
Comments
make your toggle a integer
then a rule when touch is pressed
change attribute "rapid fire" to Mod(rapid fire+1,2)
and it will toggle 0,1
@BBEnk that went way over my head man, if its a toggle wouldnt it make sense to be a boolean?
it want work with a boolean don't ask me why I don't know but it works.
Hi,
Here is a demo attached - Very simple using a game.attribute (integer).