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 enemy projectiles

All I see is videos of people making homing bullets for their gun, and tutorials telling me that. but I some enemy projectiles to chase the player I am controlling. also to rotate to the direction of the player. please someone help me, like a staff or something, I asked this question already but only a guy answered telling me to watch a video which doesn't help, because he's projectiles are from his guns.

Product Version: UE 4.10
Tags:
more ▼

asked Feb 08 '16 at 11:50 AM in Blueprint Scripting

avatar image

Master.Oogway
76 18 22 26

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

1 answer: sort voted first

When creating your projectile class add ProjectileMovementComponent and set the following:

 bIsHomingProjectile = true;
 bRotationFollowsVelocity = true;
 HomingTargetComponent = PtrToYourRootComponent;
more ▼

answered Feb 11 '16 at 01:41 PM

avatar image

lion032
986 31 80 55

avatar image lion032 Feb 11 '16 at 01:54 PM

Select the projectile component in the editor and look for bIsHomingProjectile under Homing category, bRotationFollowsVelocity under Projectile category and tick them.

(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