e2 docs table - wiremod/wire GitHub Wiki
Table
= table(...)
(1 ops)
:clear()
Clears the table (1 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)
Tbl)
printTable(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)
=
:unset(
Index)
Force removes the specified entry from the table-part, without moving subsequent entries down 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 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 copy of the table (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)
=
:removeBone(
)
Removes the variable at the specified string index, with the specified type, and returns it (8 ops)
:removeEffect(
)
Effect = Removes the variable at the specified string index, with the specified type, and returns it (8 ops)
=
:removeComplex(
)
Removes the variable at the specified string index, with the specified type, and returns it (8 ops)
=
:removeMatrix4(
)
Removes the variable at the specified string index, with the specified type, and returns it (8 ops)
=
:removeAngle(
)
Removes the variable at the specified string index, with the specified type, and returns it (8 ops)
=
:removeQuaternion(
)
Removes the variable at the specified string index, with the specified type, and returns it (8 ops)
=
:removeTable(
)
Removes the variable at the specified string index, with the specified type, and returns it (8 ops)
:removeStcontrol(
)
Stcontrol = Removes the variable at the specified string index, with the specified type, and returns it (8 ops)
=
:removeString(
)
Removes the variable at the specified string index, with the specified type, and returns it (8 ops)
=
:removeMatrix(
)
Removes the variable at the specified string index, with the specified type, and returns it (8 ops)
=
:removeMatrix2(
)
Removes the variable at the specified string index, with the specified type, and returns it (8 ops)
:removeTracedata(
)
Tracedata = Removes the variable at the specified string index, with the specified type, and returns it (8 ops)
=
:removeVector2(
)
Removes the variable at the specified string index, with the specified type, and returns it (8 ops)
:removeFtrace(
)
Ftrace = Removes the variable at the specified string index, with the specified type, and returns it (8 ops)
=
:removeWirelink(
)
Removes the variable at the specified string index, with the specified type, and returns it (8 ops)
=
:removeEntity(
)
Removes the variable at the specified string index, with the specified type, and returns it (8 ops)
=
:removeVector4(
)
Removes the variable at the specified string index, with the specified type, and returns it (8 ops)
=
:removeNumber(
)
Removes the variable at the specified string index, with the specified type, and returns it (8 ops)
=
:removeRanger(
)
Removes the variable at the specified string index, with the specified type, and returns it (8 ops)
=
:removeArray(
)
Removes the variable at the specified string index, with the specified type, and returns it (8 ops)
=
:removeVector(
)
Removes the variable at the specified string index, with the specified type, and returns it (8 ops)
:removeEffect(
)
Effect = 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 (8 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 (8 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 (8 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 (8 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 (8 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 (8 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 (8 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 (8 ops)
:removeStcontrol(
)
Stcontrol = 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 (8 ops)
:removeFtrace(
)
Ftrace = 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 (8 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 (8 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 (8 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 (8 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 (8 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 (8 ops)
:removeTracedata(
)
Tracedata = 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 (8 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 (8 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 (8 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 (8 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 (8 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 (8 ops)
:pushWirelink(
)
Adds the variable to the end of the table (10 ops)
:pushArray(
)
Adds the variable to the end of the table (10 ops)
:pushTracedata(Tracedata)
Adds the variable to the end of the table (10 ops)
:pushRanger(
)
Adds the variable to the end of the table (10 ops)
:pushTable(
)
Adds the variable to the end of the table (10 ops)
:pushEffect(Effect)
Adds the variable to the end of the table (10 ops)
:pushVector4(
)
Adds the variable to the end of the table (10 ops)
:pushStcontrol(Stcontrol)
Adds the variable to the end of the table (10 ops)
:pushString(
)
Adds the variable to the end of the table (10 ops)
:pushComplex(
)
Adds the variable to the end of the table (10 ops)
:pushFtrace(Ftrace)
Adds the variable to the end of the table (10 ops)
:pushNumber(
)
Adds the variable to the end of the table (10 ops)
:pushMatrix4(
)
Adds the variable to the end of the table (10 ops)
:pushBone(
)
Adds the variable to the end of the table (10 ops)
:pushEntity(
)
Adds the variable to the end of the table (10 ops)
:pushVector(
)
Adds the variable to the end of the table (10 ops)
:pushMatrix2(
)
Adds the variable to the end of the table (10 ops)
:pushQuaternion(
)
Adds the variable to the end of the table (10 ops)
:pushAngle(
)
Adds the variable to the end of the table (10 ops)
:pushVector2(
)
Adds the variable to the end of the table (10 ops)
:pushMatrix(
)
Adds the variable to the end of the table (10 ops)
=
:popString()
Removes and returns the last variable (10 ops)
=
:popWirelink()
Removes and returns the last variable (10 ops)
=
:popMatrix2()
Removes and returns the last variable (10 ops)
=
:popMatrix4()
Removes and returns the last variable (10 ops)
=
:popComplex()
Removes and returns the last variable (10 ops)
=
:popBone()
Removes and returns the last variable (10 ops)
:popEffect()
Effect = Removes and returns the last variable (10 ops)
=
:popAngle()
Removes and returns the last variable (10 ops)
:popTracedata()
Tracedata = Removes and returns the last variable (10 ops)
=
:popMatrix()
Removes and returns the last variable (10 ops)
=
:popVector()
Removes and returns the last variable (10 ops)
=
:popQuaternion()
Removes and returns the last variable (10 ops)
=
:popTable()
Removes and returns the last variable (10 ops)
=
:popRanger()
Removes and returns the last variable (10 ops)
=
:popEntity()
Removes and returns the last variable (10 ops)
=
:popVector4()
Removes and returns the last variable (10 ops)
=
:popArray()
Removes and returns the last variable (10 ops)
=
:popNumber()
Removes and returns the last variable (10 ops)
:popStcontrol()
Stcontrol = Removes and returns the last variable (10 ops)
=
:popVector2()
Removes and returns the last variable (10 ops)
:popFtrace()
Ftrace = Removes and returns the last variable (10 ops)
:insertVector2(
,
)
Inserts the variable at the specified position. Moves all other indexes up one step to compensate (10 ops)
:insertQuaternion(
,
)
Inserts the variable at the specified position. Moves all other indexes up one step to compensate (10 ops)
:insertFtrace(
, Ftrace)
Inserts the variable at the specified position. Moves all other indexes up one step to compensate (10 ops)
:insertBone(
,
)
Inserts the variable at the specified position. Moves all other indexes up one step to compensate (10 ops)
:insertMatrix(
,
)
Inserts the variable at the specified position. Moves all other indexes up one step to compensate (10 ops)
:insertVector4(
,
)
Inserts the variable at the specified position. Moves all other indexes up one step to compensate (10 ops)
:insertTracedata(
, Tracedata)
Inserts the variable at the specified position. Moves all other indexes up one step to compensate (10 ops)
:insertMatrix2(
,
)
Inserts the variable at the specified position. Moves all other indexes up one step to compensate (10 ops)
:insertWirelink(
,
)
Inserts the variable at the specified position. Moves all other indexes up one step to compensate (10 ops)
:insertMatrix4(
,
)
Inserts the variable at the specified position. Moves all other indexes up one step to compensate (10 ops)
:insertAngle(
,
)
Inserts the variable at the specified position. Moves all other indexes up one step to compensate (10 ops)
:insertStcontrol(
, Stcontrol)
Inserts the variable at the specified position. Moves all other indexes up one step to compensate (10 ops)
:insertString(
,
)
Inserts the variable at the specified position. Moves all other indexes up one step to compensate (10 ops)
:insertEffect(
, Effect)
Inserts the variable at the specified position. Moves all other indexes up one step to compensate (10 ops)
:insertNumber(
,
)
Inserts the variable at the specified position. Moves all other indexes up one step to compensate (10 ops)
:insertVector(
,
)
Inserts the variable at the specified position. Moves all other indexes up one step to compensate (10 ops)
:insertComplex(
,
)
Inserts the variable at the specified position. Moves all other indexes up one step to compensate (10 ops)
:insertRanger(
,
)
Inserts the variable at the specified position. Moves all other indexes up one step to compensate (10 ops)
:insertArray(
,
)
Inserts the variable at the specified position. Moves all other indexes up one step to compensate (10 ops)
:insertTable(
,
)
Inserts the variable at the specified position. Moves all other indexes up one step to compensate (10 ops)
:insertEntity(
,
)
Inserts the variable at the specified position. Moves all other indexes up one step to compensate (10 ops)
:unshiftMatrix(
)
Adds the data to the beginning of the table. Will move all other entries up one step to compensate (10 ops)
:unshiftArray(
)
Adds the data to the beginning of the table. Will move all other entries up one step to compensate (10 ops)
:unshiftVector4(
)
Adds the data to the beginning of the table. Will move all other entries up one step to compensate (10 ops)
:unshiftRanger(
)
Adds the data to the beginning of the table. Will move all other entries up one step to compensate (10 ops)
:unshiftMatrix4(
)
Adds the data to the beginning of the table. Will move all other entries up one step to compensate (10 ops)
:unshiftEntity(
)
Adds the data to the beginning of the table. Will move all other entries up one step to compensate (10 ops)
:unshiftVector(
)
Adds the data to the beginning of the table. Will move all other entries up one step to compensate (10 ops)
:unshiftMatrix2(
)
Adds the data to the beginning of the table. Will move all other entries up one step to compensate (10 ops)
:unshiftNumber(
)
Adds the data to the beginning of the table. Will move all other entries up one step to compensate (10 ops)
:unshiftStcontrol(Stcontrol)
Adds the data to the beginning of the table. Will move all other entries up one step to compensate (10 ops)
:unshiftFtrace(Ftrace)
Adds the data to the beginning of the table. Will move all other entries up one step to compensate (10 ops)
:unshiftTracedata(Tracedata)
Adds the data to the beginning of the table. Will move all other entries up one step to compensate (10 ops)
:unshiftAngle(
)
Adds the data to the beginning of the table. Will move all other entries up one step to compensate (10 ops)
:unshiftTable(
)
Adds the data to the beginning of the table. Will move all other entries up one step to compensate (10 ops)
:unshiftComplex(
)
Adds the data to the beginning of the table. Will move all other entries up one step to compensate (10 ops)
:unshiftBone(
)
Adds the data to the beginning of the table. Will move all other entries up one step to compensate (10 ops)
:unshiftVector2(
)
Adds the data to the beginning of the table. Will move all other entries up one step to compensate (10 ops)
:unshiftWirelink(
)
Adds the data to the beginning of the table. Will move all other entries up one step to compensate (10 ops)
:unshiftString(
)
Adds the data to the beginning of the table. Will move all other entries up one step to compensate (10 ops)
:unshiftEffect(Effect)
Adds the data to the beginning of the table. Will move all other entries up one step to compensate (10 ops)
:unshiftQuaternion(
)
Adds the data to the beginning of the table. Will move all other entries up one step to compensate (10 ops)