how would i make a door that opens or wall that disappears when enough enemies are killed. Created 1 year ago2023-02-21 07:22:53 UTC by claireAleonB claireAleonB

Created 1 year ago2023-02-21 07:22:53 UTC by claireAleonB claireAleonB

Posted 1 year ago2023-02-21 07:22:53 UTC Post #347356
I'm trying to make an area where the exit opens after killing all the enemies, but I can't figure out how.
Posted 1 year ago2023-02-21 19:50:51 UTC Post #347357
Best way to do this would probably be to use a game_counter entity. That will open the door as soon as you've killed the set number of enemies.

game_counter
name: lock
target: door1
Initial value: 0
Limit value: 3 (or however many enemies you want)

func_door
name: door1

Enemies (whichever monster_entity enemies you want to use)
TriggerTarget: lock
TriggerCondition: Death
monster_urby monster_urbyGoldsourcerer
Posted 1 year ago2023-04-23 09:04:01 UTC Post #347475
Would this work for a custom key entity?
Posted 1 year ago2023-04-25 14:08:44 UTC Post #347481
How do you mean? Like a key that can be used to unlock a door?

Whenever I've wanted to do that I simply make the key a func_button and have that point to a trigger_changetarget to open the door. You could also use a trigger_relay and use that as a Master for the func_door. There's a number of ways to make an unlockable door with a key/code.
monster_urby monster_urbyGoldsourcerer
You must be logged in to post a response.