Sorry if this sounds a little complicated, but I’ll try to explain.
So what I want is for a specific Blueprint Character (Character_A) to look at a static mesh from far away, and be able to lift it off the ground and bring it near him. Then I want Character_A to throw this static mesh at Character_B.
I’ve been some trouble and can’t seem to figure out how to do this.I’m a beginner when it comes to Unreal Engine so I wanted to see if anyone could help me figure this out or point me in the right direction. Thanks
You can use the node attachToActor after lineTracing to the Actor - so the output of your linetrace hit result, break it, use otherActor, cast it to your staticMesh - if cast sucessfull, add the attachToActor. Set the LocationRule of the node to “KeepRelative” and then you can bring it closer to you by for example using addRelativeLocation (find the vector between you and the staticMesh, and invert it, this should bring it to you)
So it seems like everything works, but I’m not quite sure how to set up the addRelativeLocation so the staticmesh can approach the player. Can you explain this in further detail please?
I can try Im Not in the PC right niw. Basically when you attach the actor, it’s relative Position (to the Parent) gets 0.0.0 so If you do EG in Tick a addRelativeLocation(10,0,0) it should move away from the Player (If the actors X ist Forward). You could finde Out with getForwardVector, multiply it with a float how fast it should Go, Feed it Into addRelativeLocation (Not 100% Sure If it’s the Name of the node) and Put that EG in Tick or in an Axis Event Like when scrolling the Mouse wheel or Put a Button or Key down.