Get a Line Trace by Channel
node and place it right after the Triggered
pin of your IA. Then get the player character’s location with the Get Actor Location
node and plug it into the Start
pin of the line trace node. Then get the Get Actor Forward Vector
node, multiply it with something like 200 using the multiplication node and add the actor’s location to it using the addition node, then plug the result into the End
pin of the line trace node. Connect the Return Value
of the line trace to the Condition
pin of a Branch
node and trigger your Add Movement Input
nodes after it’s False
pin.
Hope this helps!