e2 docs selfaware
Jump to table of contents
Selfaware
= entity()
Gets the entity of the expression (1 ops)
= 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)
= ioOutputEntities( Output)
Returns an array of all entities wired to the output S (10 ops)
= ioInputEntity( Input)
Returns the entity the input S is wired to (10 ops)
Collision = ioSetOutput( , Collision)
Trigger the output S of the E2 with the collision value (3 ops)
= ioSetOutput( , )
Trigger the output S of the E2 with the vector value (3 ops)
Usercmd = ioSetOutput( , Usercmd)
Trigger the output S of the E2 with the usercmd value (3 ops)
= ioSetOutput( , )
Trigger the output S of the E2 with the vector4 value (3 ops)
= ioSetOutput( , )
Trigger the output S of the E2 with the quaternion value (3 ops)
Movedata = ioSetOutput( , Movedata)
Trigger the output S of the E2 with the movedata value (3 ops)
= ioSetOutput( , )
Trigger the output S of the E2 with the array value (3 ops)
= ioSetOutput( , )
Trigger the output S of the E2 with the vector2 value (3 ops)
= ioSetOutput( , )
Trigger the output S of the E2 with the bone value (3 ops)
= ioSetOutput( , )
Trigger the output S of the E2 with the angle value (3 ops)
Egpobject = ioSetOutput( , Egpobject)
Trigger the output S of the E2 with the egpobject value (3 ops)
= ioSetOutput( , )
Trigger the output S of the E2 with the table value (3 ops)
= ioSetOutput( , )
Trigger the output S of the E2 with the matrix2 value (3 ops)
Effect = ioSetOutput( , Effect)
Trigger the output S of the E2 with the effect value (3 ops)
= ioSetOutput( , )
Trigger the output S of the E2 with the entity value (3 ops)
= ioSetOutput( , )
Trigger the output S of the E2 with the matrix value (3 ops)
Function = ioSetOutput( , Function)
Trigger the output S of the E2 with the function value (3 ops)
= ioSetOutput( , )
Trigger the output S of the E2 with the number value (3 ops)
= ioSetOutput( , )
Trigger the output S of the E2 with the ranger value (3 ops)
= ioSetOutput( , )
Trigger the output S of the E2 with the wirelink value (3 ops)
= ioSetOutput( , )
Trigger the output S of the E2 with the string value (3 ops)
= ioSetOutput( , )
Trigger the output S of the E2 with the matrix4 value (3 ops)
= ioSetOutput( , )
Trigger the output S of the E2 with the complex value (3 ops)
Damage = ioSetOutput( , Damage)
Trigger the output S of the E2 with the damage value (3 ops)
= ioGetInputEntity( )
Get the value of the input S of the E2 (3 ops)
= ioGetInputAngle( )
Get the value of the input S of the E2 (3 ops)
= ioGetInputArray( )
Get the value of the input S of the E2 (3 ops)
= ioGetInputString( )
Get the value of the input S of the E2 (3 ops)
Collision = ioGetInputCollision( )
Get the value of the input S of the E2 (3 ops)
= ioGetInputComplex( )
Get the value of the input S of the E2 (3 ops)
= ioGetInputMatrix( )
Get the value of the input S of the E2 (3 ops)
Damage = ioGetInputDamage( )
Get the value of the input S of the E2 (3 ops)
= ioGetInputVector2( )
Get the value of the input S of the E2 (3 ops)
Movedata = ioGetInputMovedata( )
Get the value of the input S of the E2 (3 ops)
Function = ioGetInputFunction( )
Get the value of the input S of the E2 (3 ops)
= ioGetInputMatrix2( )
Get the value of the input S of the E2 (3 ops)
= ioGetInputQuaternion( )
Get the value of the input S of the E2 (3 ops)
= ioGetInputNumber( )
Get the value of the input S of the E2 (3 ops)
= ioGetInputRanger( )
Get the value of the input S of the E2 (3 ops)
= ioGetInputVector4( )
Get the value of the input S of the E2 (3 ops)
= ioGetInputWirelink( )
Get the value of the input S of the E2 (3 ops)
Effect = ioGetInputEffect( )
Get the value of the input S of the E2 (3 ops)
Usercmd = ioGetInputUsercmd( )
Get the value of the input S of the E2 (3 ops)
Egpobject = ioGetInputEgpobject( )
Get the value of the input S of the E2 (3 ops)
= ioGetInputMatrix4( )
Get the value of the input S of the E2 (3 ops)
= ioGetInputVector( )
Get the value of the input S of the E2 (3 ops)
= ioGetInputBone( )
Get the value of the input S of the E2 (3 ops)
= ioGetInputTable( )
Get the value of the input S of the E2 (3 ops)
setName( Name)
Set the name of the E2 (100 ops)
:setName( Name)
Set the name of another E2 or component name for other entities (100 ops)
setOverlayText( Text)
Set the overlay text of the E2 (25 ops)
= :getName()
Get the name of another E2, compatible entity or wiremod component name (5 ops)
= canSetName()
(5 ops)
= :canSetName()
(5 ops)
= canSetName( Name)
(5 ops)
= :canSetName( Name)
(5 ops)
= getExtensions()
Returns an array of all the extensions that the server has. This includes disabled extensions! (30 ops)
= getExtensionStatus()
Returns a table of extension names with their statuses (60 ops)
= getExtensionStatus( Extension)
Returns 1 if the extension is enabled, otherwise 0 (5 ops)
= changed( Value)
(5 ops)
= changed( )
(5 ops)
= changed( )
(5 ops)
= changed( )
(5 ops)
= changed( )
(5 ops)
= changed( Value)
(5 ops)
= changed( )
(5 ops)
= changed( Value)
(5 ops)
= changed(Gtable)
(5 ops)
= changed( )
(5 ops)
= changed( )
(5 ops)
= changed( )
(5 ops)
= changed(Damage)
(5 ops)
= changed( )
(5 ops)
= changed(Function)
(5 ops)
= changed( )
(5 ops)
= changed(Collision)
(5 ops)
= changed( )
(5 ops)
= changed(Usercmd)
(5 ops)
= changed(Movedata)
(5 ops)
= changed( )
(5 ops)
= changed(Egpobject)
(5 ops)
= changed(Effect)
(5 ops)
= hash()
Returns a numerical hash using the code of the E2 itself (Including comments) (5 ops)
= hashNoComments()
Returns a numerical hash using the code of the E2 itself (Excluding comments) (5 ops)
= hash( Str)
Returns the CRC-32 of the string specified. This should not be used as a legitimate hash function (5 ops)