Mouse left button down to shoot automatically
How can I shoot automatically when I hold the mouse left button down and stop again when I released it. There is only Pressed and Released in the mouse event.
in blueprint... Thx
asked Apr 17 '14 at 10:58 PM in Blueprint Scripting
Make a loop with delay which time will be time between shoot and Boolean which say "IsFireing" and create gate note which will block the loop when "IsFireing" is false. Now on key press start the loop and set "IsFireing" to true, and on release set "IsFireing" to false.
answered Apr 17 '14 at 11:07 PM
I'd set a variable on the Blueprint that holds the fire position with Pressed and Release, then using the Tick Event (called for updating in the scene), test that variable with a Branch, then hook that up to your fire logic.
answered Apr 18 '14 at 12:35 AM
I couldn't get the above to work as intended but i found a solution using parts of other answers
answered Nov 06 '17 at 12:29 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here