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.
Here’s what I have so far. I am trying to make it so that if a fireball (Fireball_BP) overlaps with the Sphere (this is the trigger box), then the fireball will move to the target point which is at the centre of the trigger box.
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