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"

Homing Projectile that has a chance to miss?

Looking to achieve a projectile that when fired will home towards another object or class, but has the capability to miss. The projectile should not hard seek, if the object moves, the projectile should be able to miss the target. But the projectile must move towards the object enough to be able to hit it when moving.

Product Version: UE 4.10
Tags:
more ▼

asked Jan 25 '16 at 04:41 AM in Blueprint Scripting

avatar image

nmm131
170 47 49 60

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

1 answer: sort voted first

Can you just reduce the HomingAccelerationMagnitude to achieve what you want? If not, I suggest saving off the homing target location when the projectile is created and then in the tick function check to see if that location has changed. If so, add whatever logic you want.

more ▼

answered Jan 25 '16 at 05:04 AM

avatar image

Ryan Darcey
836 47 45 70

avatar image Iohoilpotere Jan 25 '16 at 08:44 AM

I agree with rcdarcey. If I'm not wrong you are trying to achieve something like the homing soulmass from Dark Soul. You can easily reach it creating a timer function in your missile's actor that turn it on your target (you can get the rotation with the "Look at" node), the timer delay should menage the "precision" of the missile. Obviously the missile's actor have to move long the X axis.

avatar image nmm131 Jan 27 '16 at 11:51 PM

I used HomingAccelerationMagnitude, simply by referencing the Projectile component that was in my projectile BP, branching off a SetProjectileHomingAccelerationMagnitude and connected its component to my character bp. Thank you!! Other ways using the node had a whole bunch of clutter

(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