Table of Contents
- Bone
- Bone = Entity:bone(Number Index)
- Array = Entity:bones()
- Number = Entity:boneCount()
- Bone = nobone()
- Entity = Bone:entity()
- Number = Bone:index()
- Vector = Bone:pos()
- Vector = Bone:forward()
- Vector = Bone:right()
- Vector = Bone:up()
- Vector = Bone:vel()
- Vector = Bone:velL()
- Vector = Bone:toWorld(Vector Pos)
- Vector = Bone:toLocal(Vector Pos)
- Angle = Bone:angVel()
- Vector = Bone:angVelVector()
- Angle = Bone:angles()
- Number = Bone:bearing(Vector Pos)
- Number = Bone:elevation(Vector Pos)
- Angle = Bone:heading(Vector Pos)
- Number = Bone:mass()
- Vector = Bone:massCenter()
- Vector = Bone:massCenterL()
- Bone:setMass(Number Mass)
- Vector = Bone:inertia()
- Bone:applyForce(Vector Force)
- Bone:applyOffsetForce(Vector Force, Vector Pos)
- Bone:applyAngForce(Angle Angforce)
- Bone:applyTorque(Vector Torque)
- Number = Bone:isFrozen()
- Bone:boneGravity(Number Gravity)
- String = toString(Bone B)
Bone
=
:bone(
Index)
Returns Es Nth bone (3 ops)
=
:bones()
Returns an array containing all of Es bones. This array's first element has the index 0! (3 ops)
=
:boneCount()
Returns Es number of bones (3 ops)
= nobone()
Returns an invalid bone (1 ops)
=
:entity()
Returns the entity B belongs to (1 ops)
=
:index()
Returns Bs index in the entity it belongs to. Returns -1 if the bone is invalid or an error occured (1 ops)
=
:pos()
Returns Bs position (1 ops)
=
:forward()
Returns a vector describing Bs forward direction (1 ops)
=
:right()
Returns a vector describing Bs right direction (1 ops)
=
:up()
Returns a vector describing Bs up direction (1 ops)
=
:vel()
Returns Bs velocity (1 ops)
=
:velL()
Returns Bs velocity in local coordinates (1 ops)
=
:toWorld(
Pos)
Transforms V from local coordinates (as seen from B) to world coordinates (1 ops)
=
:toLocal(
Pos)
Transforms V from world coordinates to local coordinates (as seen from B) (1 ops)
=
:angVel()
Returns Bs angular velocity (1 ops)
=
:angVelVector()
Returns rotation axis, velocity and direction given as the vector's direction, magnitude and sense (1 ops)
=
:angles()
Returns Bs pitch, yaw and roll angles (1 ops)
=
:bearing(
Pos)
Gets the bearing from the bone to the vector (1 ops)
=
:elevation(
Pos)
Gets the elevation from the bone to the vector (1 ops)
=
:heading(
Pos)
Gets the elevation and bearing from the bone to the vector (1 ops)
=
:mass()
Returns Bs mass (1 ops)
=
:massCenter()
Returns Bs Center of Mass (1 ops)
=
:massCenterL()
Returns Bs Center of Mass in local coordinates (1 ops)
:setMass(
Mass)
Sets the mass of the bone (between 0.001 and 50,000) (1 ops)
=
:inertia()
Gets the principal components of Bs inertia tensor in the form vec(Ixx, Iyy, Izz) (1 ops)
:applyForce(
Force)
Applies force to the bone according to the given vector's direction and magnitude (30 ops)
:applyOffsetForce(
Force,
Pos)
Applies force to the bone according to the first vector from the location of the second (30 ops)
:applyAngForce(
Angforce)
Applies torque to the bone according to the given angle (30 ops)
:applyTorque(
Torque)
Applies torque to the bone according to the given vector, representing the torque axis, magnitude and direction (30 ops)
=
:isFrozen()
Returns 1 if B is frozen, 0 otherwise (2 ops)
:boneGravity(
Gravity)
Enables/disables gravity on the bone. (10 ops)
= toString(
B)
Converts bone to string (10 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