Author
Topic: Fire and alt fire [SOLVED] (Read 192 times)

if player held button x seconds then create bullet2 all long player held down fire button (alternate fire).

For now, i'm trying this :- Idle is waiting for "Get Button Down", it stores the result in the bool fireIsPressed.- IsFiringOnce, take position of owner, create the bullet,- FireBoolTest is waiting for x secondes and is testing the bool : - if true (means player's still pressing "fire1" button), it goes to HOLDFIRE event. - if false (means player's not pressing anymore "fire1" button), it return to Idle Start state.

Of course, it's not working, i don't know why but the bool does not set to false when the fire button is release.

I try to make a "shootmanager" in another gameobject in the scene, it set correctly the bool but no result when i test the condition (it do not send to the STOPFIRE event, even if the bool is false).