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"

TPS aim when out of range help


I'm trying to set firing in TPS mode, so far it's working well when my "LineTraceByChannel" hit something, but I'm having a hard time to handle the "out of range" case.

What I'm trying to do:

  • get tps camera forward vector

  • add my weapon range to this vector

  • rotate the "muzzle socket" to look at it

  • spawn my projectile at this location/rotation

By doing that my projectile sometimes stay at the player location (I guess it's a rotation problem), sometimes the "start location" of the projectile is offsetting on the Y axis of the muzzle socket..

Here is the blueprint to handle the out of range case, and a video showing what's is going wrong

alt text


Thank you !

Product Version: UE 4.11
ue4-tps-aim.png (122.4 kB)
more ▼

asked May 29 '16 at 10:00 AM in Blueprint Scripting

avatar image

1 1 1

avatar image Muuush May 30 '16 at 02:43 PM



(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