Wired Button
From GMod Wiki
Wiremod Tool | Back |
Function: | Outputs a value when it is pressed. |
Primary fire: | Creates or updates a button. |
Secondary fire: | No action |
Reload: | No action |
Notes: | - |
Brief
Wired buttons works almost the same way as the usual Garry's mod buttons, Wired buttons just work with the Wire Addon.
Inputs
Set: Sets the state of a toggle button(1=on,0=off)
Outputs
Set in the variables The button has one output. 'on' or 'off'
Variables
- Button model: Many different models are available that range from "Do Not Press" to various numbered buttons, Plus/Minus buttons, and labeled buttons. Newer Wiremod revisions have tabs for smaller buttons.
- Toggle: When toggle is checked, pressing the button toggles between its on and off values
- Value On: The value that button outputs while it's on. This is usually 1.
- Value Off: The value that button outputs while it's off. This is usually 0.
- Output Entity: Allows the button to output the last player that used it as an entity.
Useful hints
Buttons are great for testing out small components of more complex wired contraptions. You can use them to detonate a Wired Explosive, start/stop/reset a timer, power thrusters, etc.