Table of Contents
- Wirelink
- Number = WireLink:isHiSpeed()
- Entity = WireLink:entity()
- Number = WireLink:hasInput(String Portname)
- Number = WireLink:hasOutput(String Portname)
- Array = WireLink:array(String)
- Gtable = WireLink:gtable(String)
- ComplexNumber = WireLink:complex(String)
- Matrix4 = WireLink:matrix2(String)
- Table = WireLink:table(String)
- Vector2 = WireLink:vector2(String)
- Angle = WireLink:angle(String)
- Matrix = WireLink:matrix(String)
- Matrix4 = WireLink:matrix4(String)
- Vector4 = WireLink:vector4(String)
- Tracedata = WireLink:tracedata(String)
- String = WireLink:string(String)
- WireLink = WireLink:wirelink(String)
- Effect = WireLink:effect(String)
- RangerData = WireLink:ranger(String)
- Number = WireLink:number(String)
- Bone = WireLink:bone(String)
- Stcontrol = WireLink:stcontrol(String)
- Quaternion = WireLink:quaternion(String)
- Vector = WireLink:vector(String)
- Ftrace = WireLink:ftrace(String)
- Entity = WireLink:entity(String)
- Vector = WireLink:setVector(String, Vector)
- Angle = WireLink:setAngle(String, Angle)
- Gtable = WireLink:setGtable(String, Gtable)
- Entity = WireLink:setEntity(String, Entity)
- Array = WireLink:setArray(String, Array)
- Vector2 = WireLink:setVector2(String, Vector2)
- Stcontrol = WireLink:setStcontrol(String, Stcontrol)
- Matrix4 = WireLink:setMatrix2(String, Matrix4)
- Matrix = WireLink:setMatrix(String, Matrix)
- Ftrace = WireLink:setFtrace(String, Ftrace)
- Effect = WireLink:setEffect(String, Effect)
- Matrix4 = WireLink:setMatrix4(String, Matrix4)
- ComplexNumber = WireLink:setComplex(String, ComplexNumber)
- Bone = WireLink:setBone(String, Bone)
- Tracedata = WireLink:setTracedata(String, Tracedata)
- Table = WireLink:setTable(String, Table)
- Quaternion = WireLink:setQuaternion(String, Quaternion)
- Vector4 = WireLink:setVector4(String, Vector4)
- Number = WireLink:setNumber(String, Number)
- WireLink = WireLink:setWirelink(String, WireLink)
- String = WireLink:setString(String, String)
- RangerData = WireLink:setRanger(String, RangerData)
- WireLink:setXyz(Vector Value)
- Vector = WireLink:xyz()
- WireLink = wirelink()
- WireLink = nowirelink()
- Array = WireLink:inputs()
- Array = WireLink:outputs()
- String = WireLink:inputType(String Input)
- String = WireLink:outputType(String Output)
- Number = WireLink:writeCell(Number Address, Number Value)
- Number = WireLink:readCell(Number Address)
- Array = WireLink:readArray(Number Start, Number Size)
- WireLink:writeString(String Text, Number X, Number Y, Number Textcolor, Vector Bgcolor, Number Flash)
- WireLink:writeString(String Text, Number X, Number Y, Number Textcolor, Number Bgcolor, Number Flash)
- WireLink:writeString(String Text, Number X, Number Y, Vector Textcolor, Number Bgcolor, Number Flash)
- WireLink:writeString(String Text, Number X, Number Y, Vector Textcolor, Vector Bgcolor, Number Flash)
- WireLink:writeString(String Text, Number X, Number Y, Vector Textcolor, Vector Bgcolor)
- WireLink:writeString(String Text, Number X, Number Y, Vector Textcolor, Number Bgcolor)
- WireLink:writeString(String Text, Number X, Number Y, Number Textcolor, Vector Bgcolor)
- WireLink:writeString(String Text, Number X, Number Y, Number Textcolor, Number Bgcolor)
- WireLink:writeString(String Text, Number X, Number Y, Vector Textcolor)
- WireLink:writeString(String Text, Number X, Number Y, Number Textcolor)
- WireLink:writeString(String Text, Number X, Number Y)
- WireLink:writeUnicodeString(String Text, Number X, Number Y, Number Textcolor, Vector Bgcolor, Number Flash)
- WireLink:writeUnicodeString(String Text, Number X, Number Y, Vector Textcolor, Vector Bgcolor, Number Flash)
- WireLink:writeUnicodeString(String Text, Number X, Number Y, Vector Textcolor, Number Bgcolor, Number Flash)
- WireLink:writeUnicodeString(String Text, Number X, Number Y, Number Textcolor, Number Bgcolor, Number Flash)
- WireLink:writeUnicodeString(String Text, Number X, Number Y, Number Textcolor, Vector Bgcolor)
- WireLink:writeUnicodeString(String Text, Number X, Number Y, Number Textcolor, Number Bgcolor)
- WireLink:writeUnicodeString(String Text, Number X, Number Y, Vector Textcolor, Vector Bgcolor)
- WireLink:writeUnicodeString(String Text, Number X, Number Y, Vector Textcolor, Number Bgcolor)
- WireLink:writeUnicodeString(String Text, Number X, Number Y, Vector Textcolor)
- WireLink:writeUnicodeString(String Text, Number X, Number Y, Number Textcolor)
- WireLink:writeUnicodeString(String Text, Number X, Number Y)
- Number = WireLink:writeString(Number Address, String Data)
- String = WireLink:readString(Number Address)
- Number = WireLink:writeArray(Number Address, Array Data)
- Number = WireLink:writeTable(Number Address, Table Data)
- Number = WireLink:writeArraySimple(Number Address, Array Data)
- Number = WireLink:writeTableSimple(Number Address, Table Data)
Wirelink
=
:isHiSpeed()
Returns true if the linked component is high-speed capable (2 ops)
=
:entity()
Returns the entity of the linked component (2 ops)
=
:hasInput(
Portname)
Returns true if the linked component has an input of the specified name (2 ops)
=
:hasOutput(
Portname)
Returns true if the linked component has an output of the specified name (2 ops)
=
:array(
)
Returns the array from the specified address of linked component. Deprecated, use XWL[S,array] instead (5 ops)
Gtable =
:gtable(
)
Returns the gtable from the specified address of linked component. Deprecated, use XWL[S,gtable] instead (5 ops)
=
:complex(
)
Returns the complex from the specified address of linked component. Deprecated, use XWL[S,complex] instead (5 ops)
=
:matrix2(
)
Returns the matrix2 from the specified address of linked component. Deprecated, use XWL[S,matrix2] instead (5 ops)
=
:table(
)
Returns the table from the specified address of linked component. Deprecated, use XWL[S,table] instead (5 ops)
=
:vector2(
)
Returns the vector2 from the specified address of linked component. Deprecated, use XWL[S,vector2] instead (5 ops)
=
:angle(
)
Returns the angle from the specified address of linked component. Deprecated, use XWL[S,angle] instead (5 ops)
=
:matrix(
)
Returns the matrix from the specified address of linked component. Deprecated, use XWL[S,matrix] instead (5 ops)
=
:matrix4(
)
Returns the matrix4 from the specified address of linked component. Deprecated, use XWL[S,matrix4] instead (5 ops)
=
:vector4(
)
Returns the vector4 from the specified address of linked component. Deprecated, use XWL[S,vector4] instead (5 ops)
Tracedata =
:tracedata(
)
Returns the tracedata from the specified address of linked component. Deprecated, use XWL[S,tracedata] instead (5 ops)
=
:string(
)
Returns the string from the specified address of linked component. Deprecated, use XWL[S,string] instead (5 ops)
=
:wirelink(
)
Returns the wirelink from the specified address of linked component. Deprecated, use XWL[S,wirelink] instead (5 ops)
Effect =
:effect(
)
Returns the effect from the specified address of linked component. Deprecated, use XWL[S,effect] instead (5 ops)
=
:ranger(
)
Returns the ranger from the specified address of linked component. Deprecated, use XWL[S,ranger] instead (5 ops)
=
:number(
)
Returns the number from the specified address of linked component. Deprecated, use XWL[S,number] instead (5 ops)
=
:bone(
)
Returns the bone from the specified address of linked component. Deprecated, use XWL[S,bone] instead (5 ops)
Stcontrol =
:stcontrol(
)
Returns the stcontrol from the specified address of linked component. Deprecated, use XWL[S,stcontrol] instead (5 ops)
=
:quaternion(
)
Returns the quaternion from the specified address of linked component. Deprecated, use XWL[S,quaternion] instead (5 ops)
=
:vector(
)
Returns the vector from the specified address of linked component. Deprecated, use XWL[S,vector] instead (5 ops)
Ftrace =
:ftrace(
)
Returns the ftrace from the specified address of linked component. Deprecated, use XWL[S,ftrace] instead (5 ops)
=
:entity(
)
Returns the entity from the specified address of linked component. Deprecated, use XWL[S,entity] instead (5 ops)
=
:setVector(
,
)
Sets the component's input of the specified name equal to specified vector. Deprecated, use XWL[S,vector] = X instead (5 ops)
=
:setAngle(
,
)
Sets the component's input of the specified name equal to specified angle. Deprecated, use XWL[S,angle] = X instead (5 ops)
Gtable =
:setGtable(
, Gtable)
Sets the component's input of the specified name equal to specified gtable. Deprecated, use XWL[S,gtable] = X instead (5 ops)
=
:setEntity(
,
)
Sets the component's input of the specified name equal to specified entity. Deprecated, use XWL[S,entity] = X instead (5 ops)
=
:setArray(
,
)
Sets the component's input of the specified name equal to specified array. Deprecated, use XWL[S,array] = X instead (5 ops)
=
:setVector2(
,
)
Sets the component's input of the specified name equal to specified vector2. Deprecated, use XWL[S,vector2] = X instead (5 ops)
Stcontrol =
:setStcontrol(
, Stcontrol)
Sets the component's input of the specified name equal to specified stcontrol. Deprecated, use XWL[S,stcontrol] = X instead (5 ops)
=
:setMatrix2(
,
)
Sets the component's input of the specified name equal to specified matrix2. Deprecated, use XWL[S,matrix2] = X instead (5 ops)
=
:setMatrix(
,
)
Sets the component's input of the specified name equal to specified matrix. Deprecated, use XWL[S,matrix] = X instead (5 ops)
Ftrace =
:setFtrace(
, Ftrace)
Sets the component's input of the specified name equal to specified ftrace. Deprecated, use XWL[S,ftrace] = X instead (5 ops)
Effect =
:setEffect(
, Effect)
Sets the component's input of the specified name equal to specified effect. Deprecated, use XWL[S,effect] = X instead (5 ops)
=
:setMatrix4(
,
)
Sets the component's input of the specified name equal to specified matrix4. Deprecated, use XWL[S,matrix4] = X instead (5 ops)
=
:setComplex(
,
)
Sets the component's input of the specified name equal to specified complex. Deprecated, use XWL[S,complex] = X instead (5 ops)
=
:setBone(
,
)
Sets the component's input of the specified name equal to specified bone. Deprecated, use XWL[S,bone] = X instead (5 ops)
Tracedata =
:setTracedata(
, Tracedata)
Sets the component's input of the specified name equal to specified tracedata. Deprecated, use XWL[S,tracedata] = X instead (5 ops)
=
:setTable(
,
)
Sets the component's input of the specified name equal to specified table. Deprecated, use XWL[S,table] = X instead (5 ops)
=
:setQuaternion(
,
)
Sets the component's input of the specified name equal to specified quaternion. Deprecated, use XWL[S,quaternion] = X instead (5 ops)
=
:setVector4(
,
)
Sets the component's input of the specified name equal to specified vector4. Deprecated, use XWL[S,vector4] = X instead (5 ops)
=
:setNumber(
,
)
Sets the component's input of the specified name equal to specified number. Deprecated, use XWL[S,number] = X instead (5 ops)
=
:setWirelink(
,
)
Sets the component's input of the specified name equal to specified wirelink. Deprecated, use XWL[S,wirelink] = X instead (5 ops)
=
:setString(
,
)
Sets the component's input of the specified name equal to specified string. Deprecated, use XWL[S,string] = X instead (5 ops)
=
:setRanger(
,
)
Sets the component's input of the specified name equal to specified ranger. Deprecated, use XWL[S,ranger] = X instead (5 ops)
:setXyz(
Value)
Sets the X/Y/Z to the corresponding values in the vector (15 ops)
=
:xyz()
Retrieves the X/Y/Z as the corresponding values in the vector (15 ops)
= wirelink()
Returns wirelink to this E2 (5 ops)
= nowirelink()
Returns an invalid wirelink (1 ops)
=
:inputs()
Returns an array of all the inputs that XWL has without their types. Returns an empty array if it has none (15 ops)
=
:outputs()
Returns an array of all the outputs that XWL has without their types. Returns an empty array if it has none (15 ops)
=
:inputType(
Input)
Returns the type of input that S is in lowercase. ( "NORMAL" is changed to "number" ) (15 ops)
=
:outputType(
Output)
Returns the type of output that S is in lowercase. ( "NORMAL" is changed to "number" ) (15 ops)
=
:writeCell(
Address,
Value)
Writes value into specified memory cell. Deprecated, use XWL[N] = X instead (5 ops)
=
:readCell(
Address)
Returns contents of the specified memory cell. Deprecated, use XWL[N] instead (5 ops)
=
:readArray(
Start,
Size)
Reads an array's elements from a piece of memory. Strings and sub-tables (angles, vectors, matrices) are written as pointers to the actual data. Strings are written null-terminated (5 ops)
:writeString(
Text,
X,
Y,
Textcolor,
Bgcolor,
Flash)
Same as XWL:writeString(snnnv), with an extra argument for flashing text. 0 or 1 is recommended (20 ops)
:writeString(
Text,
X,
Y,
Textcolor,
Bgcolor,
Flash)
Same as XWL:writeString(snnnn), with an extra argument for flashing text. 0 or 1 is recommended (20 ops)
:writeString(
Text,
X,
Y,
Textcolor,
Bgcolor,
Flash)
Same as XWL:writeString(snnvn), with an extra argument for flashing text. 0 or 1 is recommended (20 ops)
:writeString(
Text,
X,
Y,
Textcolor,
Bgcolor,
Flash)
Same as XWL:writeString(snnvv), with an extra argument for flashing text. 0 or 1 is recommended (20 ops)
:writeString(
Text,
X,
Y,
Textcolor,
Bgcolor)
Same as XWL:writeString(snnv), with an extra argument for background colour (20 ops)
:writeString(
Text,
X,
Y,
Textcolor,
Bgcolor)
Same as XWL:writeString(snnv), with an extra argument for background colour. This is in the form of a 3-digit RGB code. 0 is black, while 999 is white, 900 is pure red and so on (20 ops)
:writeString(
Text,
X,
Y,
Textcolor,
Bgcolor)
Same as XWL:writeString(snnn), with an extra argument for background colour (20 ops)
:writeString(
Text,
X,
Y,
Textcolor,
Bgcolor)
Same as XWL:writeString(snnn), with an extra argument for background colour. 3-digit RGB again (20 ops)
:writeString(
Text,
X,
Y,
Textcolor)
Same as XWL:writeString(snn), with an extra argument for the text colour (20 ops)
:writeString(
Text,
X,
Y,
Textcolor)
Same as XWL:writeString(snn), with an extra argument for the text colour. This is in the form of a 3-digit RGB code. 0 is black, while 999 is white, 900 is pure red and so on (20 ops)
:writeString(
Text,
X,
Y)
A helper function for using the Wired Console Screen. The string will be written to the screen in white text on black background. The number arguments specify the starting position - X/Horizontal (0-29 recommended) and Y/vertical (0-17) (20 ops)
:writeUnicodeString(
Text,
X,
Y,
Textcolor,
Bgcolor,
Flash)
Same as XWL:writeUnicodeString(snnnv), with an extra argument for flashing text. 0 or 1 is recommended (20 ops)
:writeUnicodeString(
Text,
X,
Y,
Textcolor,
Bgcolor,
Flash)
Same as XWL:writeUnicodeString(snnvv), with an extra argument for flashing text. 0 or 1 is recommended (20 ops)
:writeUnicodeString(
Text,
X,
Y,
Textcolor,
Bgcolor,
Flash)
Same as XWL:writeUnicodeString(snnvn), with an extra argument for flashing text. 0 or 1 is recommended (20 ops)
:writeUnicodeString(
Text,
X,
Y,
Textcolor,
Bgcolor,
Flash)
Same as XWL:writeUnicodeString(snnnn), with an extra argument for flashing text. 0 or 1 is recommended (20 ops)
:writeUnicodeString(
Text,
X,
Y,
Textcolor,
Bgcolor)
Same as XWL:writeUnicodeString(snnn), with an extra argument for background colour (20 ops)
:writeUnicodeString(
Text,
X,
Y,
Textcolor,
Bgcolor)
Same as XWL:writeUnicodeString(snnn), with an extra argument for background colour. 3-digit RGB again (20 ops)
:writeUnicodeString(
Text,
X,
Y,
Textcolor,
Bgcolor)
Same as XWL:writeUnicodeString(snnv), with an extra argument for background colour (20 ops)
:writeUnicodeString(
Text,
X,
Y,
Textcolor,
Bgcolor)
Same as XWL:writeUnicodeString(snnv), with an extra argument for background colour. This is in the form of a 3-digit RGB code. 0 is black, while 999 is white, 900 is pure red and so on (20 ops)
:writeUnicodeString(
Text,
X,
Y,
Textcolor)
Same as XWL:writeUnicodeString(snn), with an extra argument for the text colour (20 ops)
:writeUnicodeString(
Text,
X,
Y,
Textcolor)
Same as XWL:writeUnicodeString(snn), with an extra argument for the text colour. This is in the form of a 3-digit RGB code. 0 is black, while 999 is white, 900 is pure red and so on (20 ops)
:writeUnicodeString(
Text,
X,
Y)
A helper function for using the Wired Console Screen. The unicode string will be written to the screen in white text on black background. The number arguments specify the starting position - X/Horizontal (0-29 recommended) and Y/vertical (0-17) (20 ops)
=
:writeString(
Address,
Data)
Writes a null-terminated string to the given address. Returns the next free address or 0 on failure (20 ops)
=
:readString(
Address)
Reads a null-terminated string from the given address. Returns an empty string on failure (20 ops)
=
:writeArray(
Address,
Data)
Writes an array's elements into a piece of memory. Strings and sub-tables (angles, vectors, matrices) are written as pointers to the actual data. Strings are written null-terminated (20 ops)
=
:writeTable(
Address,
Data)
Same as writeArray, except it uses the numerically indexed variables of the table instead (20 ops)
=
:writeArraySimple(
Address,
Data)
(20 ops)
=
:writeTableSimple(
Address,
Data)
(20 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