e2 docs selfaware - wiremod/wire GitHub Wiki

Jump to table of contents

Selfaware

Entity = entity()

Gets the entity of the expression (1 ops)

Entity = 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)

Array = ioOutputEntities(String Output)

Returns an array of all entities wired to the output S (10 ops)

Entity = ioInputEntity(String Input)

Returns the entity the input S is wired to (10 ops)

Angle = ioSetOutput(String, Angle)

Trigger the output S of the E2 with the angle value (5 ops)

Vector4 = ioSetOutput(String, Vector4)

Trigger the output S of the E2 with the vector4 value (5 ops)

Vector2 = ioSetOutput(String, Vector2)

Trigger the output S of the E2 with the vector2 value (5 ops)

Array = ioSetOutput(String, Array)

Trigger the output S of the E2 with the array value (5 ops)

Matrix4 = ioSetOutput(String, Matrix4)

Trigger the output S of the E2 with the matrix2 value (5 ops)

Vector = ioSetOutput(String, Vector)

Trigger the output S of the E2 with the vector value (5 ops)

Quaternion = ioSetOutput(String, Quaternion)

Trigger the output S of the E2 with the quaternion value (5 ops)

Ftrace = ioSetOutput(String, Ftrace)

Trigger the output S of the E2 with the ftrace value (5 ops)

ComplexNumber = ioSetOutput(String, ComplexNumber)

Trigger the output S of the E2 with the complex value (5 ops)

Number = ioSetOutput(String, Number)

Trigger the output S of the E2 with the number value (5 ops)

Tracedata = ioSetOutput(String, Tracedata)

Trigger the output S of the E2 with the tracedata value (5 ops)

RangerData = ioSetOutput(String, RangerData)

Trigger the output S of the E2 with the ranger value (5 ops)

Table = ioSetOutput(String, Table)

Trigger the output S of the E2 with the table value (5 ops)

Entity = ioSetOutput(String, Entity)

Trigger the output S of the E2 with the entity value (5 ops)

Matrix = ioSetOutput(String, Matrix)

Trigger the output S of the E2 with the matrix value (5 ops)

Effect = ioSetOutput(String, Effect)

Trigger the output S of the E2 with the effect value (5 ops)

WireLink = ioSetOutput(String, WireLink)

Trigger the output S of the E2 with the wirelink value (5 ops)

String = ioSetOutput(String, String)

Trigger the output S of the E2 with the string value (5 ops)

Matrix4 = ioSetOutput(String, Matrix4)

Trigger the output S of the E2 with the matrix4 value (5 ops)

Stcontrol = ioSetOutput(String, Stcontrol)

Trigger the output S of the E2 with the stcontrol value (5 ops)

Bone = ioSetOutput(String, Bone)

Trigger the output S of the E2 with the bone value (5 ops)

Bone = ioGetInputBone(String)

Get the value of the input S of the E2 (5 ops)

Angle = ioGetInputAngle(String)

Get the value of the input S of the E2 (5 ops)

Array = ioGetInputArray(String)

Get the value of the input S of the E2 (5 ops)

Entity = ioGetInputEntity(String)

Get the value of the input S of the E2 (5 ops)

Quaternion = ioGetInputQuaternion(String)

Get the value of the input S of the E2 (5 ops)

Vector2 = ioGetInputVector2(String)

Get the value of the input S of the E2 (5 ops)

Matrix = ioGetInputMatrix(String)

Get the value of the input S of the E2 (5 ops)

Tracedata = ioGetInputTracedata(String)

Get the value of the input S of the E2 (5 ops)

Stcontrol = ioGetInputStcontrol(String)

Get the value of the input S of the E2 (5 ops)

RangerData = ioGetInputRanger(String)

Get the value of the input S of the E2 (5 ops)

String = ioGetInputString(String)

Get the value of the input S of the E2 (5 ops)

ComplexNumber = ioGetInputComplex(String)

Get the value of the input S of the E2 (5 ops)

Matrix4 = ioGetInputMatrix2(String)

Get the value of the input S of the E2 (5 ops)

Ftrace = ioGetInputFtrace(String)

Get the value of the input S of the E2 (5 ops)

Matrix4 = ioGetInputMatrix4(String)

Get the value of the input S of the E2 (5 ops)

WireLink = ioGetInputWirelink(String)

Get the value of the input S of the E2 (5 ops)

Number = ioGetInputNumber(String)

Get the value of the input S of the E2 (5 ops)

Table = ioGetInputTable(String)

Get the value of the input S of the E2 (5 ops)

Vector4 = ioGetInputVector4(String)

Get the value of the input S of the E2 (5 ops)

Effect = ioGetInputEffect(String)

Get the value of the input S of the E2 (5 ops)

Vector = ioGetInputVector(String)

Get the value of the input S of the E2 (5 ops)

setName(String Name)

Set the name of the E2 (5 ops)

Entity:setName(String Name)

Set the name of another E2 or component name for other entities (5 ops)

String = Entity:getName()

Get the name of another E2, compatible entity or wiremod component name (5 ops)

Number = changed(Number Value)

(1 ops)

Number = changed(String)

(5 ops)

Number = changed(Bone)

(5 ops)

Number = changed(WireLink)

(5 ops)

Number = changed(Entity)

(5 ops)

Number = changed(Vector Value)

(1 ops)

Number = changed(Angle Value)

(1 ops)

Number = changed(Stcontrol)

(5 ops)

Number = changed(Vector4)

(5 ops)

Number = changed(Matrix4)

(5 ops)

Number = changed(Matrix)

(5 ops)

Number = changed(RangerData)

(5 ops)

Number = changed(Quaternion)

(5 ops)

Number = changed(Ftrace)

(5 ops)

Number = changed(Matrix4)

(5 ops)

Number = changed(ComplexNumber)

(5 ops)

Number = changed(Tracedata)

(5 ops)

Number = changed(Vector2)

(5 ops)

Number = changed(Effect)

(5 ops)

Number = changed(Gtable)

(5 ops)

Number = hash()

Returns a numerical hash using the code of the E2 itself (Including comments) (5 ops)

Number = hashNoComments()

Returns a numerical hash using the code of the E2 itself (Excluding comments) (5 ops)

Number = hash(String Str)

Returns a numerical hash using the string specified (5 ops)