Search in

Sort by:

Everything Blueprint Scripting

Current Space

Question Status:

All Questions With Answer With Accepted Answer

Quick results

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

Homing Projectile that has a chance to miss?

0

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.

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.

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.

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