Table of Contents
- Sound
- soundPlay(String Index, Number Duration, String Path)
- soundPlay(Number Index, Number Duration, String Path)
- Entity:soundPlay(Number Index, Number Duration, String Path)
- Entity:soundPlay(String Index, Number Duration, String Path)
- soundPlay(Number Index, Number Duration, String Path, Number Fade)
- soundPlay(String Index, Number Duration, String Path, Number Fade)
- Entity:soundPlay(String Index, Number Duration, String Path, Number Fade)
- Entity:soundPlay(Number Index, Number Duration, String Path, Number Fade)
- soundStop(Number Index)
- soundStop(String Index)
- soundStop(String Index, Number Fadetime)
- soundStop(Number Index, Number Fadetime)
- soundVolume(Number Index, Number Volume)
- soundVolume(String Index, Number Volume)
- soundVolume(String Index, Number Volume, Number Fadetime)
- soundVolume(Number Index, Number Volume, Number Fadetime)
- soundPitch(String Index, Number Pitch)
- soundPitch(Number Index, Number Pitch)
- soundPitch(Number Index, Number Pitch, Number Fadetime)
- soundPitch(String Index, Number Pitch, Number Fadetime)
- soundPurge()
- Number = soundDuration(String Sound)
Sound
soundPlay(
Index,
Duration,
Path)
Plays sound from the E2 chip. soundPlay(string Index, int Duration, string Path to File) (25 ops)
soundPlay(
Index,
Duration,
Path)
Plays sound from the E2 chip. soundPlay(int Index, int Duration, string Path to File) (25 ops)
:soundPlay(
Index,
Duration,
Path)
Plays sound from an entity. soundPlay(int Index, int Duration, string Path to File) (25 ops)
:soundPlay(
Index,
Duration,
Path)
Plays sound from an entity. soundPlay(string Index, int Duration, string Path to File) (25 ops)
soundPlay(
Index,
Duration,
Path,
Fade)
Plays sound from the E2 chip. soundPlay(int Index, int Duration, string Path to File, int FadeTime) (25 ops)
soundPlay(
Index,
Duration,
Path,
Fade)
Plays sound from the E2 chip. soundPlay(string Index, int Duration, string Path to File, int FadeTime) (25 ops)
:soundPlay(
Index,
Duration,
Path,
Fade)
Plays sound from an entity. soundPlay(string Index, int Duration, string Path to File, int FadeTime) (25 ops)
:soundPlay(
Index,
Duration,
Path,
Fade)
Plays sound from an entity. soundPlay(int Index, int Duration, string Path to File, int FadeTime) (25 ops)
soundStop(
Index)
Stops the sound stored at the integer index and removes the entry (5 ops)
soundStop(
Index)
Stops the sound stored at the string index and removes the entry (5 ops)
soundStop(
Index,
Fadetime)
Fades the sound stored at the string index in the integer input's amount of seconds and removes the entry (5 ops)
soundStop(
Index,
Fadetime)
Fades the sound stored at the first input's integer index in the second input's amount of seconds and removes the entry (5 ops)
soundVolume(
Index,
Volume)
soundVolume(integer Index, Volume), where Volume is a number between 0 and 1. Default Volume is 1 (5 ops)
soundVolume(
Index,
Volume)
soundVolume(string Index, Volume), where Volume is a number between 0 and 1. Default Volume is 1 (5 ops)
soundVolume(
Index,
Volume,
Fadetime)
soundVolume(string Index, Volume, FadeTime), where Volume is a number between 0 and 1. Default Volume is 1 (5 ops)
soundVolume(
Index,
Volume,
Fadetime)
soundVolume(integer Index, Volume, FadeTime), where Volume is a number between 0 and 1. Default Volume is 1 (5 ops)
soundPitch(
Index,
Pitch)
soundPitch(string Index, integer Pitch) Default Pitch is 100, max is 255. Pitch is scaled linearly (like frequency), rather than by octave (5 ops)
soundPitch(
Index,
Pitch)
soundPitch(integer Index, integer Pitch) Default Pitch is 100, max is 255. Pitch is scaled linearly (like frequency), rather than by octave (5 ops)
soundPitch(
Index,
Pitch,
Fadetime)
soundPitch(integer Index, integer Pitch, integer Fadetime) Default Pitch is 100, max is 255. Pitch is scaled linearly (like frequency), rather than by octave (5 ops)
soundPitch(
Index,
Pitch,
Fadetime)
soundPitch(string Index, integer Pitch, integer Fadetime) Default Pitch is 100, max is 255. Pitch is scaled linearly (like frequency), rather than by octave (5 ops)
soundPurge()
Clears the sound table and stops all sounds (5 ops)
= soundDuration(
Sound)
soundDuration(string Path to File) Returns the duration of the sound. Note: If the server hasn't the file it returns 60 (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