Trigger that opens door when enemies are dead

Trigger that opens door when enemies are dead

Postby MadFoxSK » 19 November 2019, 18:17

Is there any way to create a trigger that opens a door when enemies are killed? If so, how to create it? Thanks in advance.
"How can one create so much mayhem, in just 30 seconds?"

"With a fully upgraded CS-BNG."

MadFoxSK
Recruit
 
Posts: 16
Joined: 27 May 2016, 17:50
Location: Slovakia

Re: Trigger that opens door when enemies are dead

Postby Darnit525 » 19 November 2019, 20:06

this is in fact possible, have a normal trigger that moves a movable, then have said trigger in character's "trigger on death" parameter, multiple enemies to open door will be more tricky and require variables and such.
User avatar
Darnit525
Usurpation Soldier [50]
 
Posts: 86
Joined: 14 October 2019, 20:19

Re: Trigger that opens door when enemies are dead

Postby Xier44 » 19 November 2019, 20:26

Darnit525 wrote:this is in fact possible, have a normal trigger that moves a movable, then have said trigger in character's "trigger on death" parameter, multiple enemies to open door will be more tricky and require variables and such.

Omg thanks!
User avatar
Xier44
Civil Security Lite [100]
 
Posts: 139
Joined: 12 November 2019, 20:24

Re: Trigger that opens door when enemies are dead

Postby jeje52 » 19 November 2019, 20:37

If you have multiple enemies set their death trigger to something like this:

1. set variable to 0 if undefined
2. add 1 to variable
3. if the variable is equal to the number of enemies, open the door

If you have a multiplayer map with a system like this, you need to set the variable to 0 right when the round starts. This is because the variable values don't reset themselves when the round ends.
If you don't reset it yourself, it's going to be a single-use door because the value will go over the number of enemies.
User avatar
jeje52
Advanced Usurpation Soldier [150]
 
Posts: 153
Joined: 13 April 2018, 19:52


Return to Bug Reporting Archive

Who is online

Users browsing this forum: No registered users