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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Enemies interacting with doors

Hi guys,

First of all, I am quite new to Blueprinting in Unreal, and I am actually a game Artist and dont know so many Programming languages, so pls dont get mad if this is a total noob question.

I made a small minigame where Enemies are spawned and you have to kill them. These Enemies are spawned behind doors. I want them to come through the doors into the "real" level.

My first attempt, which is built into the game right now, was that I create a Cube Trigger and when the Enemy walks into it the door opens so that he can get into the level. When the Enemy leaves the box, the door closes. The Problem with that is this one : When there are two enemies spawning at the same location one after another. The first one opens the door, he gets into the level and then closes the door again. If the second one is already in the box as the first one leaves the box, the door closes and he can not get into level until a third enemy opens the door again.

So I wanted to know if some one here has a solution how I can do a better door system.

Sincerely Mike

Product Version: Not Selected
Tags:
more ▼

asked Feb 22 '18 at 01:59 PM in Blueprint Scripting

avatar image

MikePonton
17 1 2 3

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

1 answer: sort voted first

Try Checking this on your Trigger Boxes.. See if it helps.

alt text

try-this.png (69.6 kB)
more ▼

answered Feb 22 '18 at 02:03 PM

avatar image

Exonfluxx
379 1 5 8

avatar image MikePonton Feb 22 '18 at 02:21 PM

Thanks for your Answer, but this didn't help. I've copied my Blueprint, because maybe it is something wrong with that : https://blueprintue.com/blueprint/cgo1luom/

avatar image Exonfluxx Feb 22 '18 at 02:37 PM

Hi,

On timeline finished you could check if there is still someone or something in the doorway and just loop off until its clear.

Off Finished maybe add a branch true with a delay that checks the trigger box and if something is still triggering the box cycle back to the delay until the branch is false then run your door closed .

This will also require a Do once attached to play from begging so enemies don't keep re triggering the door open. once its clear you can reset the Do once.

avatar image MikePonton Feb 22 '18 at 02:45 PM

Thank you, this solved my Problem :D

avatar image Exonfluxx Feb 22 '18 at 02:46 PM

Glad I Could Help.

(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