|
Post by Lemonz086 on Jul 3, 2010 3:38:37 GMT
Alright, I'm trying to make a knife fighting arena and i want a door to appear when a player enters an area and then when he dies i want the door to disappear, letting one other person through. I have read the tutorial on counting players, however i am too much of an idiot to figure out how that would benefit me. I would greatly appreciate any help.
|
|
|
Post by Angush :] on Jul 3, 2010 3:58:16 GMT
Well to have the door appear when he enters you can just have a normal func_door which is activated by a trigger_once just inside the entrance. Not too sure about the dead thing though. Zeph probably has an idea.
|
|
|
Post by Zeph on Jul 3, 2010 4:17:51 GMT
Trigger_Multiple inside the arena: OnStartTouch -> "MathCounterName" -> Add -> "1" OnEndTouch -> "MathCounterName" -> Subtract -> "1"
Math_Counter OutValue -> "LogicCaseName"
Logic_Case Case01 = 0 Case02 = 1 Case03 = 2
OnCase01 -> "DoorName" -> Open (no one in arena) OnCase02 -> "DoorName" -> Open (one player in, allow more in) OnCase03 -> "DoorName" -> Close (two players, prevent more entering)
|
|