I want an actor to move to the centre of a trigger box when it collides with it
I'm new to Unreal and trying something slightly audacious. So, similar to something the Gravity Gun can do in Half Life 2, I want an actor, in my case a sphere, to move slowly to the centre of a trigger box and stop when it collides with said trigger box.
In Half Life 2, you can pick up energy orbs and shoot them at "sockets" (we can call them locks) (not the same sockets that Unreal uses) and they stick into them and unlock something/move something etc.
I've been looking up for and I've found many different things that may help but none have so far.
If you need any more information, please ask!
Thank you so much in advance!
instead of "==" you can use "Cast to FireballBP" its a little more accurate. Also what i would do is after checking if it hit the fire ball, set a boolean variable to true. ill call it "startMoving" in this example. Add an Event tick node, then do a branch to see if "startMoving" is set to true. If it is, then you can use a VInterp node with 2 get actor locations in the two vector pins. The first GetActorLocation will have Self as the target, and the second one will have the object it is moving towards as the target(you can drag out the "OtherActor" pin from The overlap event in there.) then take the result of the "VInterpTo" node and plug that into a "SetActorLocation" node. Ive never played Half Life before so i dont know if thats what you want, but i think thats what youre going for with this
answered Jan 11 '18 at 05:41 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here