

While commands like RunOnTick (1) do the same thing, persist can single out a certain Eh. For example: if you wanted to hook the E2 up to a screen, your outputs would read command will repeat a value, with out stopping. A simple thing, such as a lowercase letter in the wrong place, is enough to corrupt and entire the input command, the command is use for connecting items via the E2 chip. When coding in E2, you must have critical grammar and spelling. For example: if you were "inputting" a clock into your E2, the inputs would read Clock".

You can exter anything you wish, just remember to use command is what "inputs" into the E2 chip. You should see five (5) lines of code already put command does, what else, it names the expression. After you have selected it, click "New" in your contex menu exit the spawn menu and you will see a box has appeared. It may sound complicated, but don't fret! Once you figure out some basic commands, you will unlock endless hours of fun.Īfter you have launched Garrys Mod, navigate to your "WireMod" tab, near the GMod tools.You will see a list of new tools, but the one we are looking for is "Expression 2". Learning C++ via the E2 tool is not the most efficient way, but it has it's benefits. If you aren't familiar with C++, you will join the majority of the population. If you have any experience with C++, you will get used to E2's syntax very quickly. Once you have mastered E2, the things that are possible with it are quite stunning.Īctually, E2 runs off of it's own version of a simplified C++. With Expression 2, also known as E2, you can input all of the data into one "gate" and execute the action you want to happen. If you've ever used WireMod before, you will notice there are alot of "gates".
GARRYS MOD E2 CODES HOW TO
All images can be clicked to be enlarged.įirst off, if you don't have Wire Mod, you can find information on how to install it here. This will only contain the very basics of E2. Note:This is a very basic Expression 2 guide for players just starting out with E2.
