Table of Contents
- Files
- fileLoad(String Filename)
- Number = fileCanLoad()
- Number = fileLoaded()
- Number = fileLoading()
- Number = fileStatus()
- String = fileName()
- String = fileRead()
- Number = fileMaxSize()
- Number = fileCanWrite()
- fileWrite(String Filename, String Data)
- fileAppend(String Filename, String Data)
- fileList(String Dir)
- Number = fileCanList()
- Number = fileLoadedList()
- Number = fileLoadingList()
- Array = fileReadList()
- runOnFile(Number Active)
- Number = fileClk()
- Number = fileClk(String Filename)
- runOnList(Number Active)
- Number = fileListClk()
- Number = fileListClk(String Dir)
Files
fileLoad(
Filename)
Loads specified file to the server (20 ops)
= fileCanLoad()
Returns 1 if the file can be loaded (5 ops)
= fileLoaded()
Returns whether or not the file has been loaded onto the server (5 ops)
= fileLoading()
Returns whether a file is currently uploading (5 ops)
= fileStatus()
Returns the status of the upload in progress. Returns one of _FILE_UNKNOWN, _FILE_OK, _FILE_TIMEOUT, _FILE_404 or _FILE_TRANSFER_ERROR (5 ops)
= fileName()
Returns the name of the last uploaded file, or an empty string if there is no currently uploaded file (5 ops)
= fileRead()
Returns the contents of the last uploaded file, or an empty string if there is no currently uploaded file (10 ops)
= fileMaxSize()
Returns the maximum file size that can be uploaded or downloaded. Default is 300 KiB (5 ops)
= fileCanWrite()
Returns 1 if the file can be written (5 ops)
fileWrite(
Filename,
Data)
Writes string data to the file overwriting it (20 ops)
fileAppend(
Filename,
Data)
Adds string data to the end of the file (20 ops)
fileList(
Dir)
Returns an array of file names that have been loaded (20 ops)
= fileCanList()
Returns 1 if the file list can be uploaded to the server (5 ops)
= fileLoadedList()
If the list has been loaded and it is called, it will return 1. Any time after that until a new list is loaded it will return 0 (5 ops)
= fileLoadingList()
Returns whether a list is currently uploading (5 ops)
= fileReadList()
Returns the contents of the last uploaded list (5 ops)
runOnFile(
Active)
Specifies whether the E2 will run when a file finishes uploading (5 ops)
= fileClk()
Returns whether the execution was run because a file finished uploading (5 ops)
= fileClk(
Filename)
Returns whether the execution was run because a file finished uploading and was that file of a specific file name (5 ops)
runOnList(
Active)
Specifies whether the E2 will run when a list finishes uploading (5 ops)
= fileListClk()
Returns whether the execution was run because a list was uploaded to the server (5 ops)
= fileListClk(
Dir)
Returns whether the execution was run because a list with specified name was uploaded to the server (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