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"

Current object overlaaping with triiger box

Hello guys. I need your help ;). I want to make a system when the player drag coins in trigger box and his score rises. (Sorry for my bad English). I have made some blueprints , but it works not only with coins , it works with every actor that overlap with triiger. What should I do ?

Product Version: UE 4.14
more ▼

asked Feb 27 '17 at 02:26 PM in Blueprint Scripting

avatar image

5 2 3 7

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

1 answer: sort voted first

if your trigger box that fires the event is in the player plug the on overlap node to cast to coins (the coin class) so there will be 2 return pins, "on cast sucessfull" and "on cast fail" on sucess you increase the score, if it's fails you do nothing, it's because you overlaped something else

if the event that increases the score is in the coin, you use the same logic, but cast the other actor to your player class. alt text

this is something similar i did in my code, there's a trigger box in the world that i want to do something when it overlaps the player, i use the cast node to be sure that it's overlapping the player

ovp.png (105.8 kB)
more ▼

answered Feb 27 '17 at 05:40 PM

avatar image

1.1k 31 17 66

(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