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"

How to make a homing projectile

Hello, I have a projectile that I spawn from an AI, and I want it to home in randomly, on one of three cubes in the game. My issue isn't really making it random but getting it to have those cubes as its target automatically when the game begins. Any help?alt text

Product Version: UE 4.18
Tags:
2017-12-19.png (566.7 kB)
2017-12-19-1.png (857.4 kB)
more ▼

asked Dec 19 '17 at 07:31 AM in Blueprint Scripting

avatar image

Grey27
41 8 12 15

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

1 answer: sort voted first

You have to create an Actor (ex. Cube). Put instances of the Actor on the scene. GetAllActorsOfClass (Cube) and drag a Get, as Index drag off Random Interger In Range (Cube count -1 as max) then you can have a reference of the Cube Actor to be the target of the homing projectile.

more ▼

answered Dec 19 '17 at 07:53 AM

avatar image

Ego Studio
606 4 4 5

avatar image Grey27 Dec 19 '17 at 08:20 AM

Could I get a shot of what the homing blueprint will look like, I can pretty much do the random bit if I get that.

avatar image Ego Studio Dec 19 '17 at 08:27 AM
(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