Hello, I’m new to Unreal 4 and i am loving it so far. but there is one thing that I cannot seem to figure out. I am messing around with the default Top Down blueprint project and i cannot figure out how to add a particle system to where you click to move the character. I have done everything i could think of and i even searched for a while for tutorials and have not found anything specific to this. If anyone knows how to do this would you please share your wisdom?
Also i just noticed that when i play with two clients nothing works i right click on one of the clients and they do not move the character but i can clearly see them both so if you have anything to help that that thanks also!
For spawn particles, check Content Example, and open Input Example, there is a UFO at the end of rooms that have spawn particle on collision.
you can just copy that and wired to your input event.(probably need some tweaking on events as you need to let GameMode(server) do it if you want it to properly done and show up for multiplayer.
Ok i looked up that blueprint and i thought i had figured it out but i still can’t get it to work i guess im just not used to blueprint yet can someone point me in the right directions.?
Dig into the MyController Blueprint on that Template. You’ll see a Function called MoveToHitLocation. Open that up.
Inside, you’ll see that we’re grabbing the location the mouse just clicked and using that as the target for the Pawn’s movement. That means all the hard work was already done for you. The last node in the chain is “Simple Move to Location.” Right after that, add a Spawn Emitter At Location node. Feed it the Location from the Break Hit Result that sits a bit earlier in the graph. Set that to any particle effect you like. Now, when you click, you’ll get particles and your Pawn will run toward them.
Ok i have been trying to get this to work since my last post with alot of trial and error and no results. I have tryed messing with the ufo demo with no luck. does anyone know whats happening here? Its driving me insane.
Im trying to make it so when you click to move you character it adds a emitter at the location that you clicked and once you reach that location it emitter will be taken away. (such as in league of legends)
Edit: I have everything setup but i cannot get the emitter to despawn once i reach the location it gets placed in and also im not sure how to set it so that only one can be placed at a time to avoid spamming the emitter around the map.
You mentioned that you wish to prevent the emitter from “spamming everywhere”,
what I guess is happening is that you spawn your emitter each Tick while your mouse button is held down.
In your blueprint, make sure to spawn the emitter after your button press event and not the **tick **event ( which is right next to the tick event in the MyController blueprint ).
The Hit Location node gets called every tick while the mouse button is pressed,
unless that is your desired effect remove your current implementation and use this instead:
As for automatically destroying the emitter,
open up your particle system in cascade and follow these steps: