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 attract item to the character

Use homing function ?

Product Version: UE 4.18
Tags:
more ▼

asked Feb 22 '18 at 12:45 PM in Blueprint Scripting

avatar image

raws_fish
1 1

avatar image Exonfluxx Feb 22 '18 at 01:03 PM

My goal was to attract health orbs to player ... Diablo III Style.

" you could use the homing feature of the projectile component " - Tried this could never get it to work. Found out Homing worked more like " influence in direction when moving. Which worked horrifically for things stationary on the ground " Not at all like movie magic.

If your doing anything else then for sure try it.

"using Vinterp and a Timeline combined with Lerp to smoothly transition between the item actor's current location (which is a vector) and the player character location (which is also a vector)" - In the end I ended up doing this.

avatar image aNorthStar Feb 22 '18 at 01:09 PM

... hi Exxon, I've done quite a bit of playing about with projectile components, mostly using them as a basic flying chase AI. I totally respect your experience, and ground-based objects might be trickier, but but it might work... though there may be some adjusting involved :)

avatar image Exonfluxx Feb 22 '18 at 01:20 PM

Agreed Please don't let me discourage. My attempts where versions ago so who knows. my big issues was I could never get them off the ground they would simply stall and roll no matter how high I set Z speed Z anything I am talking in the 100k's just would not come off the ground. they where great at hitting the player in the foot but I was looking for mid chest lol.

I believe it was unreal themselves at the time that said homing on projectiles was more like an influence in direction and less like movie magic . I gave up because my time ran short and spending a week on health orbs was killing project goals so I used the more popular way.

By All Means Do not Let my bad experiences with it stop you from trying it yourself. Nothing like seeing someone say it cant be done and you make it happen to feel great about your skill. I encourage that type of thinking in creators it makes great games.

avatar image aNorthStar Feb 22 '18 at 01:31 PM

respect to you Exonfluxx... maybe Epic had improved them by version 4:15. I did get them flying absolutely reliably and accurately towards homing targets... even moving targets

they did require quite a bit of adjustment though, and I do admit I didn't have them flying close to the ground

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

1 answer: sort voted first

... this is an interesting question... you could use the homing feature of the projectile component... it would look very good and be very performance-efficient... bravo... I'll consider using this one myself! :D

other options include using Vinterp and a Timeline combined with Lerp to smoothly transition between the item actor's current location (which is a vector) and the player character location (which is also a vector)

more ▼

answered Feb 22 '18 at 12:50 PM

avatar image

aNorthStar
1k 8 17 20

(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