Wiring and Logic Gates (Vanilla)
While Wiremod offers extensive wiring capabilities, Garry's Mod also includes basic wiring and logic gate functionalities within its vanilla tools, allowing for simpler contraptions without external addons. These vanilla tools are perfect for beginners looking to experiment with basic automation.
The vanilla wiring system in Garry's Mod primarily revolves around the Tool Gun and specific entities that can interact with it. You can use the Tool Gun's 'Constraint' tool to create connections between entities, and certain entities, like buttons and triggers, can be configured to activate or deactivate others. This allows for rudimentary automation, such as opening doors or activating lights when a player interacts with an object.
Vanilla wiring and logic concepts:
- Tool Gun Constraints: The 'Weld' and 'Rope' constraints can be used to connect entities, allowing them to move together or be pulled.
- Buttons and Triggers: These entities can be set to activate other entities when interacted with or when a player enters their area.
- Simple Logic: By chaining these interactions, you can create basic logic. For example, a button could activate a light.
- Prop Manipulation: Use the Tool Gun to make props move or rotate when activated by a trigger.
- Basic Doors: Create simple doors that open when a button is pressed.
For instance, to create a simple 'open door' mechanism, you would place a door entity and a button entity. Using the Tool Gun, you would select the 'Button' tool and then the 'Activate' function. Click on the button, then click on the door. Configure the button to activate the door's 'Open' function. Now, when a player presses the button, the door will open. This demonstrates how vanilla tools can be used for basic automation.