e2 docs table
Jump to table of contents
Table
= table(...)
(1 ops)
:clear()
Clears the table (3 ops)
= :count()
Returns the number of entries in the table. Does not add the entries in subtables (1 ops)
= :ncount()
Returns the number of sequential numerical indexes (3 ops)
= :exists( Index)
Returns 1 if the table contains any value at specified index (1 ops)
= :exists( Index)
Returns 1 if the table contains any value at specified index (1 ops)
printTable( Tbl)
Prints a table like the lua function PrintTable does, except to the chat area (5 ops)
= :flip()
Returns a flipped copy of the table. Only affects string values in the array part and number values in the table part (5 ops)
= :typeids()
Returns a new table with the typeids of the table (5 ops)
= :remove( Index)
Removes the specified entry from the array-part and returns 1 if removed (5 ops)
= :remove( Index)
Removes the specified entry from the table-part and returns 1 if removed (5 ops)
= :unset( Index)
Force removes the specified entry from the table-part, without moving subsequent entries down and returns 1 if removed (5 ops)
= :unset( Index)
Force removes the specified entry from the array-part, without moving subsequent entries down and returns 1 if removed (5 ops)
= :clipToTypeid( Typeid)
Removes all entries not of the specified type (5 ops)
= :clipFromTypeid( Typeid)
Removes all entries of the specified type (5 ops)
= :clone()
Returns a deep copy of the table. All sub-tables and arrays will be duplicated (10 ops)
= :copy()
Returns a shallow copy of the table. All sub-tables and arrays will point to the same reference (10 ops)
= :id()
Returns the unique ID of the table (1 ops)
= :toString()
Formats the table as a human-readable string (5 ops)
= :add( Rv2)
Adds the contents of the second table to the end of the first table. Returns new table (5 ops)
= :merge( Rv2)
Merges T2 with T. Any variables with the same indexes are overwritten by T2's variables (5 ops)
= :difference( Rv2)
Removes all variables with keys that exist in T2 (5 ops)
= :intersect( Rv2)
Removes all variables with keys which don't exist in T2 (5 ops)
= :pop()
Removes the last entry in the array-part and returns 1 if removed (3 ops)
= :shift()
Removes the first element of the table; all other entries will move down one address and returns 1 if removed (3 ops)
= :min()
Returns the smallest numerical entry in the array-part (5 ops)
= :max()
Returns the largest numerical entry in the array-part (5 ops)
= :maxIndex()
Returns the index of the largest numerical entry in the array-part (5 ops)
= :minIndex()
Returns the index of the smallest numerical entry in the array-part (5 ops)
= :typeidsArray()
Returns an array with the typeids of the array-part of the table (5 ops)
= :toArray()
Converts the table into an array. (Note that there is no R:totable() function because E2 arrays do not save typeids) (5 ops)
= findToTable()
Inserts the finds from an entity discovery event into an table's array-part and returns it. (Basically the same as findToArray()) (20 ops)
= :concat()
Concatenates the array-part of the table (1 ops)
= :concat( Delimiter)
Concatenates the array-part of the table, with a string delimiter (1 ops)
= :concat( Delimiter, Startindex)
Concatenates the array-part of the table, starting at index N, with string S in between each (1 ops)
= :concat( Delimiter, Startindex, Endindex)
Concatenates the array-part of the table, starting at index N1 and ending at N2, with string S in between each (1 ops)
= :concat( Startindex)
Concatenates the array-part of the table, starting at index N (1 ops)
= :concat( Startindex, Endindex)
Concatenates the array-part of the table, starting at index N1 and ending at N2 (1 ops)
= invert( Arr)
Inverts the array, creating a lookup table (5 ops)
= invert( Tbl)
Inverts the table, creating a lookup table (5 ops)
= :keys()
Returns an array with the keys of the table (5 ops)
= :values()
Returns an array with the values of the table (tables and arrays, which arrays do not support, are discarded) (5 ops)
Egpobject = :removeEgpobject( )
Removes the variable at the specified string index, with the specified type, and returns it (18 ops)
= :removeVector( )
Removes the variable at the specified string index, with the specified type, and returns it (18 ops)
= :removeMatrix2( )
Removes the variable at the specified string index, with the specified type, and returns it (18 ops)
= :removeMatrix4( )
Removes the variable at the specified string index, with the specified type, and returns it (18 ops)
Damage = :removeDamage( )
Removes the variable at the specified string index, with the specified type, and returns it (18 ops)
= :removeVector2( )
Removes the variable at the specified string index, with the specified type, and returns it (18 ops)
Function = :removeFunction( )
Removes the variable at the specified string index, with the specified type, and returns it (18 ops)
= :removeAngle( )
Removes the variable at the specified string index, with the specified type, and returns it (18 ops)
= :removeArray( )
Removes the variable at the specified string index, with the specified type, and returns it (18 ops)
= :removeTable( )
Removes the variable at the specified string index, with the specified type, and returns it (18 ops)
= :removeVector4( )
Removes the variable at the specified string index, with the specified type, and returns it (18 ops)
= :removeNumber( )
Removes the variable at the specified string index, with the specified type, and returns it (18 ops)
= :removeEntity( )
Removes the variable at the specified string index, with the specified type, and returns it (18 ops)
= :removeString( )
Removes the variable at the specified string index, with the specified type, and returns it (18 ops)
Collision = :removeCollision( )
Removes the variable at the specified string index, with the specified type, and returns it (18 ops)
Usercmd = :removeUsercmd( )
Removes the variable at the specified string index, with the specified type, and returns it (18 ops)
= :removeWirelink( )
Removes the variable at the specified string index, with the specified type, and returns it (18 ops)
= :removeMatrix( )
Removes the variable at the specified string index, with the specified type, and returns it (18 ops)
= :removeComplex( )
Removes the variable at the specified string index, with the specified type, and returns it (18 ops)
Movedata = :removeMovedata( )
Removes the variable at the specified string index, with the specified type, and returns it (18 ops)
= :removeRanger( )
Removes the variable at the specified string index, with the specified type, and returns it (18 ops)
= :removeQuaternion( )
Removes the variable at the specified string index, with the specified type, and returns it (18 ops)
= :removeBone( )
Removes the variable at the specified string index, with the specified type, and returns it (18 ops)
Effect = :removeEffect( )
Removes the variable at the specified string index, with the specified type, and returns it (18 ops)
= :removeAngle( )
Removes the variable at the specified numerical index, with the specified type, and returns it. All sequential keys will be moved down to fill the gap (18 ops)
Usercmd = :removeUsercmd( )
Removes the variable at the specified numerical index, with the specified type, and returns it. All sequential keys will be moved down to fill the gap (18 ops)
= :removeVector2( )
Removes the variable at the specified numerical index, with the specified type, and returns it. All sequential keys will be moved down to fill the gap (18 ops)
= :removeQuaternion( )
Removes the variable at the specified numerical index, with the specified type, and returns it. All sequential keys will be moved down to fill the gap (18 ops)
= :removeVector4( )
Removes the variable at the specified numerical index, with the specified type, and returns it. All sequential keys will be moved down to fill the gap (18 ops)
Effect = :removeEffect( )
Removes the variable at the specified numerical index, with the specified type, and returns it. All sequential keys will be moved down to fill the gap (18 ops)
= :removeWirelink( )
Removes the variable at the specified numerical index, with the specified type, and returns it. All sequential keys will be moved down to fill the gap (18 ops)
Damage = :removeDamage( )
Removes the variable at the specified numerical index, with the specified type, and returns it. All sequential keys will be moved down to fill the gap (18 ops)
= :removeBone( )
Removes the variable at the specified numerical index, with the specified type, and returns it. All sequential keys will be moved down to fill the gap (18 ops)
= :removeMatrix4( )
Removes the variable at the specified numerical index, with the specified type, and returns it. All sequential keys will be moved down to fill the gap (18 ops)
= :removeString( )
Removes the variable at the specified numerical index, with the specified type, and returns it. All sequential keys will be moved down to fill the gap (18 ops)
Movedata = :removeMovedata( )
Removes the variable at the specified numerical index, with the specified type, and returns it. All sequential keys will be moved down to fill the gap (18 ops)
= :removeMatrix( )
Removes the variable at the specified numerical index, with the specified type, and returns it. All sequential keys will be moved down to fill the gap (18 ops)
= :removeMatrix2( )
Removes the variable at the specified numerical index, with the specified type, and returns it. All sequential keys will be moved down to fill the gap (18 ops)
= :removeTable( )
Removes the variable at the specified numerical index, with the specified type, and returns it. All sequential keys will be moved down to fill the gap (18 ops)
Collision = :removeCollision( )
Removes the variable at the specified numerical index, with the specified type, and returns it. All sequential keys will be moved down to fill the gap (18 ops)
Egpobject = :removeEgpobject( )
Removes the variable at the specified numerical index, with the specified type, and returns it. All sequential keys will be moved down to fill the gap (18 ops)
= :removeNumber( )
Removes the variable at the specified numerical index, with the specified type, and returns it. All sequential keys will be moved down to fill the gap (18 ops)
= :removeArray( )
Removes the variable at the specified numerical index, with the specified type, and returns it. All sequential keys will be moved down to fill the gap (18 ops)
= :removeComplex( )
Removes the variable at the specified numerical index, with the specified type, and returns it. All sequential keys will be moved down to fill the gap (18 ops)
= :removeEntity( )
Removes the variable at the specified numerical index, with the specified type, and returns it. All sequential keys will be moved down to fill the gap (18 ops)
= :removeRanger( )
Removes the variable at the specified numerical index, with the specified type, and returns it. All sequential keys will be moved down to fill the gap (18 ops)
Function = :removeFunction( )
Removes the variable at the specified numerical index, with the specified type, and returns it. All sequential keys will be moved down to fill the gap (18 ops)
= :removeVector( )
Removes the variable at the specified numerical index, with the specified type, and returns it. All sequential keys will be moved down to fill the gap (18 ops)
:pushCollision(Collision)
Adds the variable to the end of the table (20 ops)
:pushEffect(Effect)
Adds the variable to the end of the table (20 ops)
:pushWirelink( )
Adds the variable to the end of the table (20 ops)
:pushVector2( )
Adds the variable to the end of the table (20 ops)
:pushString( )
Adds the variable to the end of the table (20 ops)
:pushRanger( )
Adds the variable to the end of the table (20 ops)
:pushFunction(Function)
Adds the variable to the end of the table (20 ops)
:pushNumber( )
Adds the variable to the end of the table (20 ops)
:pushComplex( )
Adds the variable to the end of the table (20 ops)
:pushVector4( )
Adds the variable to the end of the table (20 ops)
:pushEgpobject(Egpobject)
Adds the variable to the end of the table (20 ops)
:pushDamage(Damage)
Adds the variable to the end of the table (20 ops)
:pushBone( )
Adds the variable to the end of the table (20 ops)
:pushMatrix2( )
Adds the variable to the end of the table (20 ops)
:pushEntity( )
Adds the variable to the end of the table (20 ops)
:pushTable( )
Adds the variable to the end of the table (20 ops)
:pushUsercmd(Usercmd)
Adds the variable to the end of the table (20 ops)
:pushAngle( )
Adds the variable to the end of the table (20 ops)
:pushMatrix4( )
Adds the variable to the end of the table (20 ops)
:pushVector( )
Adds the variable to the end of the table (20 ops)
:pushMovedata(Movedata)
Adds the variable to the end of the table (20 ops)
:pushArray( )
Adds the variable to the end of the table (20 ops)
:pushQuaternion( )
Adds the variable to the end of the table (20 ops)
:pushMatrix( )
Adds the variable to the end of the table (20 ops)
= :popQuaternion()
Removes and returns the last variable (20 ops)
Movedata = :popMovedata()
Removes and returns the last variable (20 ops)
= :popRanger()
Removes and returns the last variable (20 ops)
= :popEntity()
Removes and returns the last variable (20 ops)
= :popVector()
Removes and returns the last variable (20 ops)
= :popVector4()
Removes and returns the last variable (20 ops)
= :popMatrix4()
Removes and returns the last variable (20 ops)
Damage = :popDamage()
Removes and returns the last variable (20 ops)
= :popWirelink()
Removes and returns the last variable (20 ops)
= :popMatrix2()
Removes and returns the last variable (20 ops)
= :popBone()
Removes and returns the last variable (20 ops)
Usercmd = :popUsercmd()
Removes and returns the last variable (20 ops)
= :popComplex()
Removes and returns the last variable (20 ops)
= :popAngle()
Removes and returns the last variable (20 ops)
Function = :popFunction()
Removes and returns the last variable (20 ops)
Effect = :popEffect()
Removes and returns the last variable (20 ops)
= :popNumber()
Removes and returns the last variable (20 ops)
= :popVector2()
Removes and returns the last variable (20 ops)
= :popMatrix()
Removes and returns the last variable (20 ops)
Egpobject = :popEgpobject()
Removes and returns the last variable (20 ops)
Collision = :popCollision()
Removes and returns the last variable (20 ops)
= :popString()
Removes and returns the last variable (20 ops)
= :popArray()
Removes and returns the last variable (20 ops)
= :popTable()
Removes and returns the last variable (20 ops)
:insertQuaternion( , )
Inserts the variable at the specified position. Moves all other indexes up one step to compensate (20 ops)
:insertMatrix( , )
Inserts the variable at the specified position. Moves all other indexes up one step to compensate (20 ops)
:insertWirelink( , )
Inserts the variable at the specified position. Moves all other indexes up one step to compensate (20 ops)
:insertUsercmd( , Usercmd)
Inserts the variable at the specified position. Moves all other indexes up one step to compensate (20 ops)
:insertVector( , )
Inserts the variable at the specified position. Moves all other indexes up one step to compensate (20 ops)
:insertAngle( , )
Inserts the variable at the specified position. Moves all other indexes up one step to compensate (20 ops)
:insertCollision( , Collision)
Inserts the variable at the specified position. Moves all other indexes up one step to compensate (20 ops)
:insertFunction( , Function)
Inserts the variable at the specified position. Moves all other indexes up one step to compensate (20 ops)
:insertString( , )
Inserts the variable at the specified position. Moves all other indexes up one step to compensate (20 ops)
:insertMatrix2( , )
Inserts the variable at the specified position. Moves all other indexes up one step to compensate (20 ops)
:insertTable( , )
Inserts the variable at the specified position. Moves all other indexes up one step to compensate (20 ops)
:insertVector2( , )
Inserts the variable at the specified position. Moves all other indexes up one step to compensate (20 ops)
:insertNumber( , )
Inserts the variable at the specified position. Moves all other indexes up one step to compensate (20 ops)
:insertBone( , )
Inserts the variable at the specified position. Moves all other indexes up one step to compensate (20 ops)
:insertVector4( , )
Inserts the variable at the specified position. Moves all other indexes up one step to compensate (20 ops)
:insertComplex( , )
Inserts the variable at the specified position. Moves all other indexes up one step to compensate (20 ops)
:insertArray( , )
Inserts the variable at the specified position. Moves all other indexes up one step to compensate (20 ops)
:insertDamage( , Damage)
Inserts the variable at the specified position. Moves all other indexes up one step to compensate (20 ops)
:insertEffect( , Effect)
Inserts the variable at the specified position. Moves all other indexes up one step to compensate (20 ops)
:insertRanger( , )
Inserts the variable at the specified position. Moves all other indexes up one step to compensate (20 ops)
:insertEgpobject( , Egpobject)
Inserts the variable at the specified position. Moves all other indexes up one step to compensate (20 ops)
:insertEntity( , )
Inserts the variable at the specified position. Moves all other indexes up one step to compensate (20 ops)
:insertMovedata( , Movedata)
Inserts the variable at the specified position. Moves all other indexes up one step to compensate (20 ops)
:insertMatrix4( , )
Inserts the variable at the specified position. Moves all other indexes up one step to compensate (20 ops)
:unshiftMatrix( )
Adds the data to the beginning of the table. Will move all other entries up one step to compensate (20 ops)
:unshiftFunction(Function)
Adds the data to the beginning of the table. Will move all other entries up one step to compensate (20 ops)
:unshiftWirelink( )
Adds the data to the beginning of the table. Will move all other entries up one step to compensate (20 ops)
:unshiftArray( )
Adds the data to the beginning of the table. Will move all other entries up one step to compensate (20 ops)
:unshiftBone( )
Adds the data to the beginning of the table. Will move all other entries up one step to compensate (20 ops)
:unshiftComplex( )
Adds the data to the beginning of the table. Will move all other entries up one step to compensate (20 ops)
:unshiftRanger( )
Adds the data to the beginning of the table. Will move all other entries up one step to compensate (20 ops)
:unshiftMatrix2( )
Adds the data to the beginning of the table. Will move all other entries up one step to compensate (20 ops)
:unshiftDamage(Damage)
Adds the data to the beginning of the table. Will move all other entries up one step to compensate (20 ops)
:unshiftVector2( )
Adds the data to the beginning of the table. Will move all other entries up one step to compensate (20 ops)
:unshiftVector4( )
Adds the data to the beginning of the table. Will move all other entries up one step to compensate (20 ops)
:unshiftQuaternion( )
Adds the data to the beginning of the table. Will move all other entries up one step to compensate (20 ops)
:unshiftEgpobject(Egpobject)
Adds the data to the beginning of the table. Will move all other entries up one step to compensate (20 ops)
:unshiftCollision(Collision)
Adds the data to the beginning of the table. Will move all other entries up one step to compensate (20 ops)
:unshiftMatrix4( )
Adds the data to the beginning of the table. Will move all other entries up one step to compensate (20 ops)
:unshiftNumber( )
Adds the data to the beginning of the table. Will move all other entries up one step to compensate (20 ops)
:unshiftString( )
Adds the data to the beginning of the table. Will move all other entries up one step to compensate (20 ops)
:unshiftVector( )
Adds the data to the beginning of the table. Will move all other entries up one step to compensate (20 ops)
:unshiftEntity( )
Adds the data to the beginning of the table. Will move all other entries up one step to compensate (20 ops)
:unshiftTable( )
Adds the data to the beginning of the table. Will move all other entries up one step to compensate (20 ops)
:unshiftAngle( )
Adds the data to the beginning of the table. Will move all other entries up one step to compensate (20 ops)
:unshiftUsercmd(Usercmd)
Adds the data to the beginning of the table. Will move all other entries up one step to compensate (20 ops)
:unshiftMovedata(Movedata)
Adds the data to the beginning of the table. Will move all other entries up one step to compensate (20 ops)
:unshiftEffect(Effect)
Adds the data to the beginning of the table. Will move all other entries up one step to compensate (20 ops)