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"

Problem with spawning objects after upgrading to 4.9

Hello. When i try to spawn my bullet it spawns it on position 0,0,0 and not on the correct location of the model's socket. Also it does not move forward (using a projectMovementComponent).

It does call the constructor and the setVelocity method inside the Bullet.cpp class and the velocity does get set properly.

Another weird thing is when i eject and i press the bullet in the World Outliner it suddenly starts moving.

I do get a warning inside the spawn method saying: bNoCollisionFail is deprecated.

Here is my code:

SpawnBP Code: http://pastebin.com/kDnQfzca

Fire (Calls SpawnBP) Code: http://pastebin.com/ZPuKJTbX

Bullet.cpp: http://pastebin.com/jG6g9PdM

Can some one help me with my problem?

Product Version: UE 4.9
more ▼

asked Sep 03 '15 at 11:45 AM in C++ Programming

avatar image

1 2

avatar image eagletree Sep 25 '15 at 10:02 PM

I had this problem with my weapons. The eject-and-click-in-outliner suggests it is the same problem. The solution for me was that my mesh (of the weapon in my case versus the projectile in your case) was not the root of the blueprint. When I replaced the "Default Root" with my mesh, it started working as expected, connecting to the socket and moving as I intended it to.

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

0 answers: sort voted first
Be the first one to answer this question
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