Search
Username:
Password:
Register or Reset Password
Remove the ads!
  
Requiring multiple events before activating
Difficulty: Beginner
Category: CS:S > MappingAuthor(s):
Did you create this? Request ownership

This tutorial explains how to require multiple triggering events before performing a command. This is written about breaking a wall by pressing two buttons but can be used with anything that can be set to give an output and with any number of triggers.

1) a) Select the wall that you wish to break and tie it to "func_breakable" and name it breakable_wall (or whatever you want). b) Under flags check "Only Break on Trigger".

2) a) Create an entity "math_counter" and name it counter (or whatever you want). b) The "Initial Value" and "Minimum Legal Value" should be set to 0 leave them. c) Set the "Maximum Legal Value" to the number of triggers you want to have activated before the wall breaks. In this case 2. d) Add a new output and under "My output named" select "OnHitMax". Under "Target entities named" select "breakable_wall" (or whatever you named it). Under "Via this input" select "break".

3) a) Select one of the buttons that you want to have pressed to break the wall and tie it to "func_button". b) Under flags check "Use Activates". c) Set "Delay Before Reset" to -1. This is very important or else once it resets it can be pressed again which will trigger the wall to break. d) Add a new output and under "My output named" select "OnPressed". Under "Target entities named" select "counter" (or whatever you named it). Under "Via this input" select "Add". Under "With a parameter override of" type 1.

4) a) Repeat step 3 for all buttons that you want to have activated before the wall breaks.

That's all. If you have any questions PM me or post them in the forums and I will help you as best I can.
Added: 2 years agoTags: requiring, multiple, events, before, activating
Feedback (5)
DxMaxiPT13 .
DxMaxiY2M
Posted 1 month ago
Omfg... The next time u see
- DxMaxi
ClanFever .
BannedY2M
Posted 1 year ago
Sif refer me to this. :P
- Banned
:.
Super ModeratorY2M
Posted 2 years ago
Very useful tutorial, it helped me a lot. Only suggestion is maybe format it a bit.
.
Banana BotY2M
Posted 2 years ago
Seriously awesome. I have a map that I've been working on for awhile that has alot of hidden buttons in it. I am for sure going to use this in the map. Thanks bro!
alm1ghtymatt .
LOLER masterY2M
Posted 2 years ago
Dude thanks so much!
Add Feedback
Provide constructive feedback. What is "constructive"?
You cannot post yet!
Get involved on FPSB by posting your thoughts. Give authors your feedback to help them develop.

To post in this submission register or login.
Assessment
The community's verdict.
User Rating [+]
9.3/10
bScore
7.0/10
You cannot assess yet!
Moderating FPSB is in your hands - when you assess a submission your vote determines its success or failure.

To vote on this submission register or login.
Stamps
This Tutorial in a nutshell...
No stamps recorded
You cannot stamp yet!
Stamps let you apply characteristics to submissions to help others understand them.

To stamp this submission register or login.
None found
Added by...
:
BAD WOLF
: Mod, Subject Omega Mod Leader, IP Search Admin, ModLog Admin, Post Mod, WithHolder Admin, Ripe Member, Forum Mod, Tutorial Mod and User Mod
Ranked 82nd ( 1) with 31,813 points. 10 points behind Thomas Edward Yorke .

[+] Donate
Related Tutorials