I'm attempting to setup multiple input actions on the same button press.
Example 1 Weapon Switching:
Pressing a button once equips the primary weapon.
Pressing again cycles threw to the secondary weapon.
A double tap of the button equips the alt weapon like a pistol or heavy weapon.
Example 2 Multiple interactions on the same button press:
Press a button to reload.
Press this same button to open doors.
Press this same button to pickup objects and powerups.
Example 3 Crouch and Evade:
Press a button to evade.
Hold in this button to put the player into crouch.
Can anyone lead me to either an example in one of the example unreal maps, or some documentation, or a youtube vid showing an example setup. Even just posting an example BP of how you solved this problem would be helpful. I have a pretty good grasp of setting up my inputs in the action mappings and calling the nodes in Blueprint. I'm just not seeing the logic for things like detecting if a button is held down or pressed fast in succession. If I had some logic that worked for these things I could branch off into the bp I have for reload, crouch, dash, etc. Any ideas? I Def would like to learn best practice for a setup like this.
Example 1 Weapon Switching:
Pressing a button once equips the primary weapon.
Pressing again cycles threw to the secondary weapon.
A double tap of the button equips the alt weapon like a pistol or heavy weapon.
Example 2 Multiple interactions on the same button press:
Press a button to reload.
Press this same button to open doors.
Press this same button to pickup objects and powerups.
Example 3 Crouch and Evade:
Press a button to evade.
Hold in this button to put the player into crouch.
Can anyone lead me to either an example in one of the example unreal maps, or some documentation, or a youtube vid showing an example setup. Even just posting an example BP of how you solved this problem would be helpful. I have a pretty good grasp of setting up my inputs in the action mappings and calling the nodes in Blueprint. I'm just not seeing the logic for things like detecting if a button is held down or pressed fast in succession. If I had some logic that worked for these things I could branch off into the bp I have for reload, crouch, dash, etc. Any ideas? I Def would like to learn best practice for a setup like this.
Comment