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)

Collision = ioSetOutput(String, Collision)

Trigger the output S of the E2 with the collision value (3 ops)

Vector = ioSetOutput(String, Vector)

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

Usercmd = ioSetOutput(String, Usercmd)

Trigger the output S of the E2 with the usercmd value (3 ops)

Vector4 = ioSetOutput(String, Vector4)

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

Quaternion = ioSetOutput(String, Quaternion)

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

Movedata = ioSetOutput(String, Movedata)

Trigger the output S of the E2 with the movedata value (3 ops)

Array = ioSetOutput(String, Array)

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

Vector2 = ioSetOutput(String, Vector2)

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

Bone = ioSetOutput(String, Bone)

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

Angle = ioSetOutput(String, Angle)

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

Egpobject = ioSetOutput(String, Egpobject)

Trigger the output S of the E2 with the egpobject value (3 ops)

Table = ioSetOutput(String, Table)

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

Matrix4 = ioSetOutput(String, Matrix4)

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

Effect = ioSetOutput(String, Effect)

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

Entity = ioSetOutput(String, Entity)

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

Matrix = ioSetOutput(String, Matrix)

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

Function = ioSetOutput(String, Function)

Trigger the output S of the E2 with the function value (3 ops)

Number = ioSetOutput(String, Number)

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

RangerData = ioSetOutput(String, RangerData)

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

WireLink = ioSetOutput(String, WireLink)

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

String = ioSetOutput(String, String)

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

Matrix4 = ioSetOutput(String, Matrix4)

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

ComplexNumber = ioSetOutput(String, ComplexNumber)

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

Damage = ioSetOutput(String, Damage)

Trigger the output S of the E2 with the damage value (3 ops)

Entity = ioGetInputEntity(String)

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

Angle = ioGetInputAngle(String)

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

Array = ioGetInputArray(String)

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

String = ioGetInputString(String)

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

Collision = ioGetInputCollision(String)

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

ComplexNumber = ioGetInputComplex(String)

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

Matrix = ioGetInputMatrix(String)

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

Damage = ioGetInputDamage(String)

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

Vector2 = ioGetInputVector2(String)

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

Movedata = ioGetInputMovedata(String)

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

Function = ioGetInputFunction(String)

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

Matrix4 = ioGetInputMatrix2(String)

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

Quaternion = ioGetInputQuaternion(String)

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

Number = ioGetInputNumber(String)

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

RangerData = ioGetInputRanger(String)

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

Vector4 = ioGetInputVector4(String)

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

WireLink = ioGetInputWirelink(String)

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

Effect = ioGetInputEffect(String)

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

Usercmd = ioGetInputUsercmd(String)

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

Egpobject = ioGetInputEgpobject(String)

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

Matrix4 = ioGetInputMatrix4(String)

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

Vector = ioGetInputVector(String)

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

Bone = ioGetInputBone(String)

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

Table = ioGetInputTable(String)

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

setName(String Name)

Set the name of the E2 (100 ops)

Entity:setName(String Name)

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

setOverlayText(String Text)

Set the overlay text of the E2 (25 ops)

String = Entity:getName()

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

Number = canSetName()

(5 ops)

Number = Entity:canSetName()

(5 ops)

Number = canSetName(String Name)

(5 ops)

Number = Entity:canSetName(String Name)

(5 ops)

Array = getExtensions()

Returns an array of all the extensions that the server has. This includes disabled extensions! (30 ops)

Table = getExtensionStatus()

Returns a table of extension names with their statuses (60 ops)

Number = getExtensionStatus(String Extension)

Returns 1 if the extension is enabled, otherwise 0 (5 ops)

Number = changed(Number Value)

(5 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)

(5 ops)

Number = changed(Angle)

(5 ops)

Number = changed(Vector4 Value)

(5 ops)

Number = changed(Gtable)

(5 ops)

Number = changed(Matrix4)

(5 ops)

Number = changed(Quaternion)

(5 ops)

Number = changed(Matrix4)

(5 ops)

Number = changed(Damage)

(5 ops)

Number = changed(RangerData)

(5 ops)

Number = changed(Function)

(5 ops)

Number = changed(Matrix)

(5 ops)

Number = changed(Collision)

(5 ops)

Number = changed(Vector2)

(5 ops)

Number = changed(Usercmd)

(5 ops)

Number = changed(Movedata)

(5 ops)

Number = changed(ComplexNumber)

(5 ops)

Number = changed(Egpobject)

(5 ops)

Number = changed(Effect)

(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 the CRC-32 of the string specified. This should not be used as a legitimate hash function (5 ops)