i've put together this behavior for shooting and reloading which seems to work until the time to reload comes. the player can shoot 6 times but then instead of waiting .1 seconds to 'reload' and get 6 more shots, the player can just shoot indefinitely because the 'pistol ammo' variable is not reset back to 6.
i'm sure the method i've used is far from the most efficient one that could be used. i'd like to know if this behavior is salvageable (and if so, how) or if i should scrap this pair of behaviors.
Update: so i've changed the behaviors a bit based on suggestions i've gotten in this thread and the result works better but my understanding of stencyl is very limited. now the player can shoot 6 times, then reload and shoot another 6 times but after that reloading doesn't work anymore. thank you so far for the replies.