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"

Enable/disable an Actor.

Hello! I have two trigger boxes. Both of them make some objects play animations. But I want the first trigger box activate the second trigger box. Without overlapping the first trigger box - the second doesn't work or doesn't exist. How can I make it with blueprints?? Thank you.

Product Version: UE 4.20
Tags:
more ▼

asked Sep 16 '18 at 08:36 PM in Blueprint Scripting

avatar image

NewMan2332
23 2 4 9

avatar image Shadowriver Sep 16 '18 at 08:40 PM

Can you say in detail how you expect this to work? like example of case

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

1 answer: sort voted first

Ok so you want to have communication between 2 seperate blueprints. The method I am using is the following :

  1. Create the 2 blueprints .

  2. Add box collision component to the first one so it should work like trigger box

  3. Open your character blueprint (the one who is going to activate the first triggerbox)and create a boolean let us call it "check" and is going to be false

  4. When the character passes through the first one component then that boolean check variable is set to true . The way to do it is the nodes On component begin overlap (box collision) > Cast to main character > set "check" true > do whatever else you want like play the first object animation

  5. Now open the second blueprint and do the following nodes Event tick > Cast to main character > get "check" > branch if check is true > play second object animation

  6. Do not forget to create a second boolean variable to the second blueprint so you can make sure the animation is played only once . If you do not then it is going to loop forever because we are inside the event tick node. So create a boolean and check if this is true as well in the same branch where you check the "check" variable. Finally at the end after you play your animation set this variable to false

I hope I helped you. If you did not understand something then feel free to ask me to create screenshots with an example of those steps. (I did not do it at the moment because I am using my phone to answer you).

Good luck.

more ▼

answered Sep 16 '18 at 09:43 PM

avatar image

VortXGaming
223 4 5 12

avatar image NewMan2332 Sep 17 '18 at 08:57 AM

Thank you! You helped a lot!

(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