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"

Bullet static mesh fires out at an angle IF i move forward at the same time.. Also fires at an angle if i aim up or down.

I have a bullet static mesh that is set to fire forward using an impulse, it works fine when stationary and i see the bullet static mesh fire in a perfect straight line, my problem is two fold, the first problem is that when i fire the bullet and hold 'W' to move forward at the same time, the bullet goes in a straight line still, but the bullet static mesh fire out at an angle, almost sideways! If I hold 'A' and 'D' to strafe left and right, the bullet appears to fire straight (atleast from what I can tell) but it is when i hold forward that the problem occurs, also my character pauses for a millisecond when i press fire while moving forward, but this does not happen when i am strafing or moving back! I can't help but think this is connected and tied in to the bullet going sideways when moving forward, as the pause only occurs moving forward when firing too.

My second problem related to the bullet firing is, if i aim up or down, the bullet static mesh always seems to stay somewhat horizontal, so while the shot does go where i fire, the bullet static mesh comes out more horizontally without vertically adjusting.. so if i aim directly up at the roof, the bullet comes out kind of horizontal, even though you would want the bullet to appear to be firing straight up rather than sideways.

Here is a screenshot of my blueprint:

alt text I hope this makes sense, its hard to explain some of it to be honest! I am new to UE4 been using it for a few weeks, learning very fast but still figuring out some bits.

Product Version: UE 4.15
pistol.png (249.2 kB)
more ▼

asked May 26 '17 at 02:05 PM in Blueprint Scripting

avatar image

6 1 3

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

You should use projectiles for that purpose.

more ▼

answered May 26 '17 at 03:53 PM

avatar image

4.2k 80 16 103

avatar image RoscoeAlpha May 26 '17 at 04:19 PM

I have a blueprint for the static mesh bullet that is spawned when the impulse is fired. I don't understand what you mean by using projectiles? From what i understand, i am. A physical projectile fires when i click my mouse button.

(comments are locked)
10|2000 characters needed characters left

Bullet is implemented as projectile object? It should have movement component to fly, and it shouldn't use any impulses...

here is example documentation for it:


you can check BP implementation of projectiles in First Person template project.

Its a special class of objects that used for bullets, grenades, rockets and so on.

more ▼

answered May 26 '17 at 04:46 PM

avatar image

4.2k 80 16 103

avatar image RoscoeAlpha May 26 '17 at 05:06 PM

No the bullet does not use impulses, i will check the other stuff to be sure. I followed a 2017 tutorial on youtube to get it to fire, and it works good, its just weird how the bullet fires at weird angle. Thanks.

(comments are locked)
10|2000 characters needed characters left
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