Add a little force when spawning a object

Hi all !

I succeeded to create a object spawner when the character entering in a trigger box, with specific location and life time to the spawned object.
But I would like to add a little force in a X,Y or Z direction when my object is spawning.

In first, I tried something like this :

http://image.noelshack.com/fichiers/2015/15/1428848799-bpprob1.jpg

That was not working.

So I tried to add a Physics Linear Velocity to the object during a little second, to simulate a push force, but I can’t target my SpawnActor to the thing :

http://image.noelshack.com/fichiers/2015/15/1428848800-bppro2.jpg

Well, that’s it. I even try to put a JumpPad blueprint at the spawner location (yes, I’m using Unreal Tournament Editor), but that didn’t work.

Thanks for any help ! :smiley:

Look into Add Impulse node. You may need to use a value over 100k depending on the mass of the object.

Thanks for your answer !!
I tried the Add Impulse node, but it seems to be the same thing. I can’t targeting my SpawnActor node to my Add Impulse node. So the Add Impulse node is targeting the trigger box by default, as it was with the “Set Physics Linear Velocity” node.

The mesh needs to be set to Simulate Physics.

My cube mesh into my “UnCube” Blueprint class have the “Simulate Physics” option well checked.
But the “Add Impulse” node is always targeting my trigger box (and my trigger box need to be static so that the player can enter in it to activate the spawn process). So how can I targeting the “SpawnActor” node to the “Add Impulse” node ?

Thanks !

You should be able to get the static mesh component like you did in the second screenshot, then plug it to the target input of Add Impulse.

Apparently no, I don’t understand why :’-(

http://image.noelshack.com/fichiers/2015/15/1428866196-bpprob3.jpg

Or… Is there any possibilities to create the “Add Impulse” node while making a selection of my “UnCube” Blueprint class or something like that, in order to get directly the target from my blueprint class ?

EDIT : Okay, I’m sorry, that’s related to my actual poor blueprint knowledge…
If anyone have the same problem, don’t try to create the node by right-clicking in the void, but get your “Return Value” of your SpawnActor, click and drag it in the void, then create your “Add Impulse” node. Now, it will be linked to the SpawnActor.

Big thanks Jacky for the help !