Expression 2 - wiremod/wire GitHub Wiki
This wiki has been created so that everyone with a github account can contribute to the documentation, so please do. If what you are looking for isn't listed here, use the subreddit or the Discord server.
- Syntax - Start here to learn E2's syntax
-
Directives - Learn what directives like
@strict
,@autoupdate
,@trigger
and@persist
do - Editor - See editor shortcuts
- Guides & Tooling - Guides and tools to help with writing E2
Command | Description |
---|---|
wire_expression2_model | Manually changes the expression's model |
wire_expression2_reload | Reloads all E2 extensions, useful for debugging your own extensions. Keep in mind that client-side files will be taken from gmod's cache in multi-player mode. |
wire_expression2_debug 0/1 | Toggles debug mode, which shows info that might be useful for the developers. You need to do "wire_expression2_reload" after changing for this to have any effect. |
wire_expression2_extension_enable | Enables the specified extension. |
wire_expression2_extension_disable | Disables the specified extension. |
wire_expression2_unlimited 0/1 | Enables/disables performance limiting. |
Note: Most E2 addons do not register themselves as extensions and thus cannot be turned on or off with the above commands. A notable exception is the Prop-core extension, which is disabled by default.
Also, you must run wire_expression2_reload in order for enabling/disabling extensions to take effect.