x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Rotating Spawn Emitter

Hello guys,

I'm trying to achieve a magic spell, that shoots a beam of sparks at the enemy. I want it to start at the players hand (couldn't find out, how to asign the hand bone from the Mesh to the "Spwan Emitter Attached) and to follow the players rotation. Despite thinking, calculating the emitter rotation correctly, shoudln't be the problem, I have serious troubles to rotate the spawn emitter at all. When I set some rotation at the "required" section, nothing happens. This Emitter spawns always to the ground. Is there any way to fix that?

I used the P_Sparks from the Starter Pack. Whoops

Product Version: UE 4.11
Tags:
sparksue4.png (461.1 kB)
more ▼

asked May 26 '16 at 10:51 AM in Blueprint Scripting

avatar image

ShatteredGames
10 2 4 8

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hard to tell exactly what you're trying to do, but you might try putting a socket in the hand bone, spawning the emitter attached to that socket. Since it's attached, it should follow what the socket does, so if the player turns the socket turns, and you don't have to rotate the emitter at all, just simply activate/deactivate it.

The emitter will face forward constantly in relation to the socket, but the socket will rotate with the player because it's attached to skeletal structure.

(You may have to rotate the socket or the emitter to get the initial vector to your liking, a proper forward vector if you will)

more ▼

answered May 26 '16 at 03:55 PM

avatar image

WahaGames
56 1 2 3

avatar image ShatteredGames May 26 '16 at 04:46 PM

Thank you for your answer! Attaching to socket worked fine! And I finally found out, why it points to the ground!

This is my character blueprint: alt text

And this the socket: alt text

Until here, everything is fine. But I didn't mind this setting: alt text

How can I translate the player rotation into acceleration of the emitter? Is this going to work? Or do you know any other way to do this?

spark2.png (139.9 kB)
grippoint.png (1.3 MB)
sparks2.png (367.7 kB)
avatar image WahaGames May 26 '16 at 05:15 PM

Out of curiosity, looking at your blueprint, why do you break the Rotator and then instantly remake it without making any changes?

avatar image ShatteredGames May 26 '16 at 05:04 PM

Found out how! I just deleted const. acceleration and inserted initial velocity. This fixed the problem.

avatar image WahaGames May 26 '16 at 05:14 PM

Good deal. Glad you figured it out because I'm not real good at particle effects modification.

avatar image ShatteredGames May 26 '16 at 05:37 PM

There is a lot to learn about emitters.... Every time something else is not working.

Now I try to deal damage to the object it hits. I have some struggles, but maybe I can do it ;)

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question