TrianglesHappen
Member
So my goal is to make a pistol that has both a charge shot and quick shot. So if the player taps the input it shoots like a normal pistol would, but if they hold the input it will perform a charge shot for extra damage.
So I set the "Fire" type to "Charge and Fire" or "Charge and Hold" (I've tried both) and set the charge times. I set up the animations like the Bow from the demo.
The charge part works perfectly fine and functions as it should. The issue now is that the quick shot is not working. I have the UseSlot0 Ability stop type set to Button Up - this solved some issues for me and really is the part that made it work so far. I have the Animator Audio Substateindex set to 2 for the weapon properties script and then the charge substateindex sets it to 10. I have the use even and use complete events set to timers for full control of the timing. I've been trying to play around with the times to see if the use or use complete events set the substate to 2 in order for a normal quick shot fire but seem to have no success with that.
As always any help is appreciated and if I do have to code this on my own I would need some helpful advice on where to start. I'm thinking of starting a timer with the button down event and if the button is lifted before the min charge time then regular shot and if the button is held then charge shot. But it would be great to achieve this with the out of the box controller.
Thanks.
So I set the "Fire" type to "Charge and Fire" or "Charge and Hold" (I've tried both) and set the charge times. I set up the animations like the Bow from the demo.
The charge part works perfectly fine and functions as it should. The issue now is that the quick shot is not working. I have the UseSlot0 Ability stop type set to Button Up - this solved some issues for me and really is the part that made it work so far. I have the Animator Audio Substateindex set to 2 for the weapon properties script and then the charge substateindex sets it to 10. I have the use even and use complete events set to timers for full control of the timing. I've been trying to play around with the times to see if the use or use complete events set the substate to 2 in order for a normal quick shot fire but seem to have no success with that.
As always any help is appreciated and if I do have to code this on my own I would need some helpful advice on where to start. I'm thinking of starting a timer with the button down event and if the button is lifted before the min charge time then regular shot and if the button is held then charge shot. But it would be great to achieve this with the out of the box controller.
Thanks.
Last edited: