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"

split trigger volume and use more triggers

How can I use one trigger volume and split it in to two, To use both sites of the trigger.

If i have a doorway and a camera on each sides of the doorway and I want to trigger the camera depending on with way I enter the trigger.

I can do this with two triggers but I don't want too. Can I use just one trigger for this. and how?

Product Version: Not Selected
more ▼

asked Dec 09 '15 at 10:22 PM in Using UE4

avatar image

1 1 3

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

1 answer: sort voted first

Hey Quxin,

So to control this with a single trigger is going add a bit more logic to your blueprint, versus simply adding another trigger and having that control a specific camera as well. In your case, you are going to want to establish the two cameras within your scene to switch between, placed on either side of your door.

You will then want to introduce a /\/ FlipFlop so that upon Overlapping the Trigger volume, you switch to one camera, and upon the second overlap event, you switch to the second camera. Use the images below as an example on how to do this through the level blueprint.

Switching Between Cameras using Single Trigger Volume

alt text

I have also added the ability to return to the active player character controlled camera, when you end the overlap event.

Return to Player Camera

alt text

There is a small hitch with this logic, using a single trigger volume restricts your ability to enter the door from both sides out of order, unless you added additional logic. In other words, If I enter the door starting from the inside of the room, instead of the outside, the camera switch will be reversed. This can be avoided by simply adding another trigger tied solely to a single camera. This way, no matter which direction you approach, it will switch to that given camera.

Scene Set Up

alt text

Here is how I have my scene set-up, and as you can see I am approaching from outside of the room first, every time. Let me know if you have further questions or need additional assistance.


Andrew Hurley

more ▼

answered Dec 16 '15 at 07:43 PM

avatar image Quxin Dec 18 '15 at 07:49 AM

Thank you AndrewHurley for the greate answar. That really helped me out.

avatar image abhishek_wave Oct 11 '18 at 11:26 AM

I wish everyone gave such amazingly detailed answers, thank you!

(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