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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Projectile homing player?

All tutorials in youtube and unreal are about a projectile homing the enemy. I cannot find any way to make some enemy projectiles chase the player im controlling. I set the homing box in projectile movement to true. I know there is the functions set homing target and set is missile homing but I don't know how to use them correctly. can someone show me how to make the projectiles home me and rotate to the position of the character the best way?

Product Version: UE 4.10
Tags:
more ▼

asked Feb 26 '16 at 01:26 PM in Blueprint Scripting

avatar image

Master.Oogway
76 17 20 24

avatar image Ryan Darcey Feb 26 '16 at 06:31 PM

i thought homing wasn't working when i first implemented it, but turned out i had to crank the Homing Acceleration Magnitude up much higher than i expected. are you sure that value is strong enough?

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

1 answer: sort voted first

Hello GitGudGitRekt

I have provided and example below of an object that will track the player. I have also included in the example how to switch the target. I hope that this information helps.

Example:

In this example I have created this blueprint within the blueprint of the object that will be moving. If you would like to change the target that the object is tracking you will want to change the top actor location to the actor you would like to for the object to track. If you would like to change how quickly the object moves, you will want to change the float value that is currently set to 5 in the example.

alt text

Make it a great day

more ▼

answered Mar 03 '16 at 08:52 PM

avatar image

Rudy Q ♦♦ STAFF
47.4k 545 132 523

avatar image Master.Oogway Mar 04 '16 at 08:45 AM

oh ok i guess that is another way to make a homing object. i have already done my homing projectiles (a different way) by using the set homing target function thing, i kind off had to random guess where to connect everything but it finally worked!. but actually i have a friend that needed an object to follow him so your answer actually just helped him. thank you very much haha

avatar image Sozen Jul 19 '16 at 03:28 PM

Hey, I used that blueprint because I was having a similar problem but I can't figure out how to reference an object/actor in the in the blueprint. I want to make a projectile which, in it's simplest form, targets the player and then when the player right clicks it toggles via flip flop to target a specific object in the scene. I have done all of that but I can't figure out how to reference the object so that I can make is target italt text

avatar image Rudy Q ♦♦ STAFF Jul 19 '16 at 03:55 PM

Hello Sozen,

I have provided some documentation below that will help you with finding actors in your scene. I hope that this information helps.

Link: https://docs.unrealengine.com/latest/INT/Gameplay/HowTo/FindingActors/Blueprints/index.html

Make it a great day

avatar image Sozen Jul 19 '16 at 05:25 PM

Thank you, I looked at the thing but unfortunately I wasn't able to use that information to fix my issue because the "Get actor location" requires an actor reference and as far as I can tell there is no actor reference in that. I made it and changed it to fit me but there is no blue node that I can connect.

(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