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"

ProjectileMovement not working on spawned actor

I created a blueprint and set a sphere component as the scene root. I then added a ProjectileMovement component. I have the velocity set as 1,0,0, initial and max speed as 300. If i add the blueprint to the scene manually in the editor the object moves as expected. If I add the blueprint programatically (Using SpawnActor), the entity does not move at all. Am I missing some special wiring up needed after spawning?

Product Version: UE 4.13
more ▼

asked Sep 22 '16 at 09:02 PM in Blueprint Scripting

avatar image

3 1 3 3

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

1 answer: sort voted first

You might need to set the projectile movement component active and set updated component of it. Also you could try to print out the velocity to see what's going on with your projectile movement component.

more ▼

answered Sep 22 '16 at 11:22 PM

avatar image

Akitsuki Rin
52 2 3 7

avatar image bambitlaw Sep 23 '16 at 04:41 PM

Thanks, you sent me on the right track. Apparently I was generating the object too close to another blueprint and it was immediately colliding. When it collides, it apparently was losing its updated component. Once I instantiated away from my capsule, it works as expected. Thanks!

(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