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"

Spawn Trigger Volume?

Hi,

I am trying to make a simple blueprint that, once the player has triggered x number of events, the game will enter a sort of "phase 2" and spawn new trigger volumes.

Basically, the player walks around the environment, runs into trigger volumes which trigger audio to play, and continues until they found all of these events. Then, the new round of trigger volumes would need to spawn.

I am quite new at this so any bit of advice is appreciated!

Here is what I have so far... Basically I am trying to set booleans for the trigger volumes that are already in game. Then the script would check using the array to see if all of these values were true. If true, spawn phase 2 trigger volumes. As you can tell I got a bit lost...

Thanks for any advice!

alt text

Product Version: Not Selected
Tags:
capture.png (233.7 kB)
more ▼

asked Dec 03 '14 at 12:24 AM in Blueprint Scripting

avatar image

Briby
16 3 5 8

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

2 answers: sort voted first

What I do when doing similar things is set the triggers to get destroyed after they've served their purpose. To bring in the new trigger volumes, I pre-place them in the world but underneath the floor. I attach them to a matinee movement track and when I want I play the matinee that brings all the triggers that I want up.

Hope this cheap trick helps :P

more ▼

answered Dec 03 '14 at 05:34 AM

avatar image

Mortusnyte
916 45 20 77

avatar image Briby Dec 04 '14 at 01:53 AM

That seems to work well enough! I ended up ditching arrays because I couldn't figure it out and booleans on their on work fine. Thanks!

avatar image Mortusnyte Dec 04 '14 at 09:43 AM

Np, glad to help. You might want to look into Gates and Multi-gates also instead of booleans, in some cases it might work better. I tried to make a quick BP that sounds like what you are trying to do. After passing through all the triggers, the next set of triggers get activated. Using this method allows for activating the triggers in any order.

The transport event was just used to keep everything on screen without having a connection running across. alt text

Using the collision instead of matinee is probably a bit faster too now that I think about it.

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

An alternative is to have them in the level, and only activate their overlap property once the conditions have been met, via variable. You can also destroy the previous ones when this happens, with one fell swoop.

Nothing wrong with the other answer; I always find multiple perspectives and options to be useful in case the scenario evolves in a way that calls for a different approach.

more ▼

answered Dec 04 '14 at 01:57 AM

avatar image

DG Gage
1.7k 62 31 129

avatar image Mortusnyte Dec 04 '14 at 09:10 AM

True. I had helped on a similar question but used collision to activate/deactivate the triggers. Yet another way to do it I love UE4 :P

alt text

triggervlumebp.png (102.7 kB)
(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