Table of Contents
- Selfaware
- Entity = entity()
- Entity = owner()
- selfDestruct()
- selfDestructAll()
- Array = ioOutputEntities(String Output)
- Entity = ioInputEntity(String Input)
- Angle = ioSetOutput(String, Angle)
- Vector4 = ioSetOutput(String, Vector4)
- Vector2 = ioSetOutput(String, Vector2)
- Array = ioSetOutput(String, Array)
- Matrix4 = ioSetOutput(String, Matrix4)
- Vector = ioSetOutput(String, Vector)
- Quaternion = ioSetOutput(String, Quaternion)
- Ftrace = ioSetOutput(String, Ftrace)
- ComplexNumber = ioSetOutput(String, ComplexNumber)
- Number = ioSetOutput(String, Number)
- Tracedata = ioSetOutput(String, Tracedata)
- RangerData = ioSetOutput(String, RangerData)
- Table = ioSetOutput(String, Table)
- Entity = ioSetOutput(String, Entity)
- Matrix = ioSetOutput(String, Matrix)
- Effect = ioSetOutput(String, Effect)
- WireLink = ioSetOutput(String, WireLink)
- String = ioSetOutput(String, String)
- Matrix4 = ioSetOutput(String, Matrix4)
- Stcontrol = ioSetOutput(String, Stcontrol)
- Bone = ioSetOutput(String, Bone)
- Bone = ioGetInputBone(String)
- Angle = ioGetInputAngle(String)
- Array = ioGetInputArray(String)
- Entity = ioGetInputEntity(String)
- Quaternion = ioGetInputQuaternion(String)
- Vector2 = ioGetInputVector2(String)
- Matrix = ioGetInputMatrix(String)
- Tracedata = ioGetInputTracedata(String)
- Stcontrol = ioGetInputStcontrol(String)
- RangerData = ioGetInputRanger(String)
- String = ioGetInputString(String)
- ComplexNumber = ioGetInputComplex(String)
- Matrix4 = ioGetInputMatrix2(String)
- Ftrace = ioGetInputFtrace(String)
- Matrix4 = ioGetInputMatrix4(String)
- WireLink = ioGetInputWirelink(String)
- Number = ioGetInputNumber(String)
- Table = ioGetInputTable(String)
- Vector4 = ioGetInputVector4(String)
- Effect = ioGetInputEffect(String)
- Vector = ioGetInputVector(String)
- setName(String Name)
- Entity:setName(String Name)
- String = Entity:getName()
- Number = changed(Number Value)
- Number = changed(String)
- Number = changed(Bone)
- Number = changed(WireLink)
- Number = changed(Entity)
- Number = changed(Vector Value)
- Number = changed(Angle Value)
- Number = changed(Stcontrol)
- Number = changed(Vector4)
- Number = changed(Matrix4)
- Number = changed(Matrix)
- Number = changed(RangerData)
- Number = changed(Quaternion)
- Number = changed(Ftrace)
- Number = changed(Matrix4)
- Number = changed(ComplexNumber)
- Number = changed(Tracedata)
- Number = changed(Vector2)
- Number = changed(Effect)
- Number = changed(Gtable)
- Number = hash()
- Number = hashNoComments()
- Number = hash(String Str)
Selfaware
= entity()
Gets the entity of the expression (1 ops)
= owner()
Gets the owner of the expression ( same as entity():owner() ) (1 ops)
selfDestruct()
Removes the expression (5 ops)
selfDestructAll()
Removes the expression and all constrained props (5 ops)
= ioOutputEntities(
Output)
Returns an array of all entities wired to the output S (10 ops)
= ioInputEntity(
Input)
Returns the entity the input S is wired to (10 ops)
= ioSetOutput(
,
)
Trigger the output S of the E2 with the angle value (5 ops)
= ioSetOutput(
,
)
Trigger the output S of the E2 with the vector4 value (5 ops)
= ioSetOutput(
,
)
Trigger the output S of the E2 with the vector2 value (5 ops)
= ioSetOutput(
,
)
Trigger the output S of the E2 with the array value (5 ops)
= ioSetOutput(
,
)
Trigger the output S of the E2 with the matrix2 value (5 ops)
= ioSetOutput(
,
)
Trigger the output S of the E2 with the vector value (5 ops)
= ioSetOutput(
,
)
Trigger the output S of the E2 with the quaternion value (5 ops)
Ftrace = ioSetOutput(
, Ftrace)
Trigger the output S of the E2 with the ftrace value (5 ops)
= ioSetOutput(
,
)
Trigger the output S of the E2 with the complex value (5 ops)
= ioSetOutput(
,
)
Trigger the output S of the E2 with the number value (5 ops)
Tracedata = ioSetOutput(
, Tracedata)
Trigger the output S of the E2 with the tracedata value (5 ops)
= ioSetOutput(
,
)
Trigger the output S of the E2 with the ranger value (5 ops)
= ioSetOutput(
,
)
Trigger the output S of the E2 with the table value (5 ops)
= ioSetOutput(
,
)
Trigger the output S of the E2 with the entity value (5 ops)
= ioSetOutput(
,
)
Trigger the output S of the E2 with the matrix value (5 ops)
Effect = ioSetOutput(
, Effect)
Trigger the output S of the E2 with the effect value (5 ops)
= ioSetOutput(
,
)
Trigger the output S of the E2 with the wirelink value (5 ops)
= ioSetOutput(
,
)
Trigger the output S of the E2 with the string value (5 ops)
= ioSetOutput(
,
)
Trigger the output S of the E2 with the matrix4 value (5 ops)
Stcontrol = ioSetOutput(
, Stcontrol)
Trigger the output S of the E2 with the stcontrol value (5 ops)
= ioSetOutput(
,
)
Trigger the output S of the E2 with the bone value (5 ops)
= ioGetInputBone(
)
Get the value of the input S of the E2 (5 ops)
= ioGetInputAngle(
)
Get the value of the input S of the E2 (5 ops)
= ioGetInputArray(
)
Get the value of the input S of the E2 (5 ops)
= ioGetInputEntity(
)
Get the value of the input S of the E2 (5 ops)
= ioGetInputQuaternion(
)
Get the value of the input S of the E2 (5 ops)
= ioGetInputVector2(
)
Get the value of the input S of the E2 (5 ops)
= ioGetInputMatrix(
)
Get the value of the input S of the E2 (5 ops)
Tracedata = ioGetInputTracedata(
)
Get the value of the input S of the E2 (5 ops)
Stcontrol = ioGetInputStcontrol(
)
Get the value of the input S of the E2 (5 ops)
= ioGetInputRanger(
)
Get the value of the input S of the E2 (5 ops)
= ioGetInputString(
)
Get the value of the input S of the E2 (5 ops)
= ioGetInputComplex(
)
Get the value of the input S of the E2 (5 ops)
= ioGetInputMatrix2(
)
Get the value of the input S of the E2 (5 ops)
Ftrace = ioGetInputFtrace(
)
Get the value of the input S of the E2 (5 ops)
= ioGetInputMatrix4(
)
Get the value of the input S of the E2 (5 ops)
= ioGetInputWirelink(
)
Get the value of the input S of the E2 (5 ops)
= ioGetInputNumber(
)
Get the value of the input S of the E2 (5 ops)
= ioGetInputTable(
)
Get the value of the input S of the E2 (5 ops)
= ioGetInputVector4(
)
Get the value of the input S of the E2 (5 ops)
Effect = ioGetInputEffect(
)
Get the value of the input S of the E2 (5 ops)
= ioGetInputVector(
)
Get the value of the input S of the E2 (5 ops)
setName(
Name)
Set the name of the E2 (5 ops)
:setName(
Name)
Set the name of another E2 or component name for other entities (5 ops)
=
:getName()
Get the name of another E2, compatible entity or wiremod component name (5 ops)
= changed(
Value)
(1 ops)
= changed(
)
(5 ops)
= changed(
)
(5 ops)
= changed(
)
(5 ops)
= changed(
)
(5 ops)
= changed(
Value)
(1 ops)
= changed(
Value)
(1 ops)
= changed(Stcontrol)
(5 ops)
= changed(
)
(5 ops)
= changed(
)
(5 ops)
= changed(
)
(5 ops)
= changed(
)
(5 ops)
= changed(
)
(5 ops)
= changed(Ftrace)
(5 ops)
= changed(
)
(5 ops)
= changed(
)
(5 ops)
= changed(Tracedata)
(5 ops)
= changed(
)
(5 ops)
= changed(Effect)
(5 ops)
= changed(Gtable)
(5 ops)
= hash()
Returns a numerical hash using the code of the E2 itself (Including comments) (5 ops)
= hashNoComments()
Returns a numerical hash using the code of the E2 itself (Excluding comments) (5 ops)
= hash(
Str)
Returns a numerical hash using the string specified (5 ops)
Expression 2 ⚙️
Getting Started 🕊
- Syntax 🔣
- Directives 🎛️
- Editor 🖥️
- Ops 📊
Guides (In learning order) 🎓
- Learning & Getting Help 📚
- Triggers ⏲️
- Events 🎬
- Find Functions 🔍
- Physics 🚀
- EGP Basics 📈
- Lambdas λ
- Lambda Timers λ⏲️
- Tips & Tricks 📘
Tools 🛠️
Click To Expand
Advanced
- 🟥 SPU
- 🟥 Address Bus
- 🟥 Extended Bus
- 🟥 Plug/Socket
- 🟥 Port
- 🟥 Transfer Bus
- 🟩 GPU
- 🟥 Dynamic Memory
- 🟥 Flash EEPROM
- 🟥 ROM
Beacon 💡
- 🟧 Beacon Sensor
- 🟧 Locator
- 🟧 Target Finder
- 🟧 Waypoint
- 🟥 XYZ Beacon
Control 🎛️
- 🟩 CPU
- 🟩 Expression 2
- 🟩 Gates
- 🟥 PID
Data 💿
- 🟧 CD Disk
- 🟥 CD Ray
- 🟧 DHDD
- 🟥 Keycard
- 🟥 RAM-card
- 🟧 Satellite Dish
- 🟧 Store
- 🟧 Transferer
- 🟥 Wired Wirer
Detection 👀
- 🟧 Adv Entity Marker
- 🟧 Damage Detector
- 🟧 Entity Marker
- 🟧 GPS
- 🟧 Gyroscope
- 🟥 HighSpeed Ranger
- 🟧 Laser Pointer Receiver
- 🟥 Microphone
- 🟧 Ranger
- 🟧 Speedometer
- 🟧 Water Sensor
Display 💻
- 🟧 7 Segment Display
- 🟥 Adv. Hud Indicator
- 🟧 Console Screen
- 🟧 Control Panel
- 🟧 Digital Screen
- 🟧 EGP v3
- 🟧 Fix RenderTargets
- 🟥 GPULib Switcher
- 🟧 Hud Indicator
- 🟧 Indicator
- 🟧 Lamp
- 🟧 Light
- 🟧 Oscilloscope
- 🟧 Pixel
- 🟧 Screen
- 🟧 Sound Emitter
- 🟧 Text Screen
Render 🖌
- 🟩 Cam Controller
- 🟧 Colorer
- 🟧 FX Emitter
- 🟧 HighSpeed Holoemitter
- 🟧 HoloEmitter
- 🟧 HoloGrid
- 🟥 Interactable Holography Emitter
- 🟥 Materializer
- 🟥 Painter
I/O 🔌
- 🟧 Adv. Input
- 🟧 Button
- 🟧 Constant Value
- 🟥 Door Controller
- 🟧 Dual Input
- 🟧 Dynamic Button
- 🟧 Eye Pod
- 🟧 Graphics Tablet
- 🟧 Keyboard
- 🟥 Lever
- 🟧 Numpad
- 🟧 Numpad Input
- 🟧 Numpad Output
- 🟧 Plug
- 🟧 Pod Controller
- 🟧 Radio
- 🟧 Relay
- 🟧 Text Receiver
- 🟧 Two-way Radio
- 🟧 Vehicle Controller
Physics 🚀
- 🟥 Door
- 🟥 Adv. Dupe. Teleporter
- 🟥 Buoyancy
- 🟧 Clutch
- 🟧 Detonator
- 🟧 Explosives
- 🟧 Explosives (Simple)
- 🟥 Forcer
- 🟩 Freezer
- 🟧 Gimbal (Facer)
- 🟧 Grabber
- 🟧 Hoverball
- 🟧 Hoverdrive Controller
- 🟥 Hydraulic
- 🟧 Igniter
- 🟧 Nailer
- 🟩 Prop Spawner
- 🟥 Servo
- 🟥 Simple Servo
- 🟧 Thruster
- 🟥 Touchplate
- 🟥 Trail
- 🟩 Turret
- 🟩 User
- 🟥 Vector Thruster
- 🟥 Vehicle Exit Point
- 🟧 Weight (Adjustable)
- 🟧 Weld/Constraint Latch
- 🟥 Wheel
- 🟥 Wire Magnet
- 🟥 Wired Npc Controller
Utilities 🛠️
- 🟧 Debugger
- 🟥 GUI Wiring
- 🟥 Multi Wire
- 🟧 Namer
- 🟥 Simulate Data
- 🟩 Wiring
RFID 💳
- 🟥 Beam Reader
- 🟥 Implanter
- 🟥 Reader
- 🟥 Target Filter
- 🟥 User Reader
Wireless 🛜
Gates 🚥
Click To Expand
TBD
Extras 🔭
Please do not alter the e2 docs ...
pages manually.
They are autogenerated from the E2Helper. In the future, this will hopefully be its own dedicated website or tool.
Default Extensions
Basic Features: core, debug, number, selfaware,
string, timer
🌎 World: angle, color, find, ranger, sound,
🔣 Math: bitwise, complex, matrix, quaternion, vector, vector2/4
📦 Entities: bone, constraint, egp, entity, hologram, npc
👨 Players: chat, console, player, weapon
📊 Data storage: array, files, globalvars, serialization, table
💬 Communication: datasignal, http, signal, wirelink,
❓ Informational: gametick, serverinfo, steamidconv, unitconv
Additional Extensions
Disabled by default: constraintcore, effects, propcore, remoteupload, wiring
Wire-Extras (repo): camera, ftrace, holoanim, light, stcontrol, tracesystem