Red key for red door, blue key for blue door etc


(Erik-Ftn) #1

Hi do you know of anything like this (ie multiple simultaneous keys) and ET/ RTCW multiplayer / Q3 whatever.

What I want is yellow key for yellow door, blue key for blue door etc etc

cheers

Erik


(Moonkey) #2

Seems like the death{} section of the trigger_flagonly_multiple, and secured{} in the team_CTF_redflag are both called when an objective is secured.

I’m not sure which is called first, but you could use wait commands to get the sequence how you want it.

Probably the best way to work it is to make the redflag trigger the corresponding flagonly and set an accum. Then whenever the death section of the flagonly is called, you can have a short wait, then check to make sure that it was triggered by the correct key.


(Moonkey) #3

Hmmm, thinking about it more, in my setup if you took red key to blue door, it would still set the accum on red door and allow any key to open it.

I guess the way around this is to ‘turn off’ the accums of all the doors that don’t match the key whose secured{} block is being executed.

that way if you took red key to blue door it would still set the accum on red door, but when you took blue key to red door it would turn turn off the red door one again, before the death{} block got a chance to check it.

/me wonders if this babble makes sense


(Erik-Ftn) #4

Yes it makes perfect sense and is very very nice :slight_smile:

This will work.

thx a million :slight_smile:

Erik

EDIT: Confirmed, It works. (and btw “death” is prior to “captured”, by far it seems)