Control Movement with Triggers
I'm trying to change the character movement depending the trigger which it passes, that is, if the character passes through a trigger it turn to the right and if the character passes through another trigger that it turn to the left.
I'm new to unreal engine 4 and I don't know how to do this with blueprints.
Thanks in Advance!
asked Dec 31 '16 at 02:06 PM in Blueprint Scripting
You can try and make a Blueprint with a Box Trigger Component and then make a OnComponentBeginOverlap Event which takes the overlapping player and rotates them 90 degrees to the left or right.
To get you started, go to your Content Browser, right click to open a a menu, go to the Create Basic Asset section and select Blueprint Class. Then you'll see a menu asking what you want the parent class of your blueprint to be. Pick Actor.
After that, name your asset and double click it to enter the Blueprint editor. You'll be greeted with a window with three tabs within it; Viewport, Construction Script, and Event Graph. You'll be interested in the first and third tab for the most part. Anyways, go to the Add Component drop down in the top left corner, click on it, and scroll down till you see Box Collision and click on that.
You should now have a Box Collision from which you can wire up an OnComponentBeginOverlap event to do the character rotation stuff earlier.
answered Dec 31 '16 at 03:29 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here