Hello! I am a beginner at Unreal Engine so I don’t really know much scripting rules and stuff . I have two animations for landing (bare in mind this is a parkour themed game) , one of which I want to be played if you press a button when you land; this is a soft landing or a skill roll. If you don’t press the button when landing you get a hard landing. How do I do this!?
on landing animation add a notify, on the animation eventgraph make the animation notify event to set a timer (desired lapse for the player to press the button) and a boolean “Allowed to press”.
on the player blueprint make a key press (E for example) and set a branch (with the Allowed To Press boolean as condition). on press set a boolean “Do animation” into the Animation blueprint (do GetAnimInstance from the mesh).
on the animation eventgraph, do animation when “Do Animation” is pressed.
Details explained: The timer and the boolean “Allowed To Press” must be into the player blueprint. another variable “ElapsedTime” should be into the blueprint and start adding the GetWorldDeltaTime to itself and when you press the button, compare itself with the time set at Timer (at the beginning) to validate the button press.