e2 docs array - wiremod/wire GitHub Wiki

Jump to table of contents

Array

Array = array(...)

Creates an array (1 ops)

Vector2 = Array:vector2(Number)

Returns the vector2 stored in the array under specified index. Deprecated, use R[N,vector2] instead (5 ops)

Stcontrol = Array:stcontrol(Number)

Returns the stcontrol stored in the array under specified index. Deprecated, use R[N,stcontrol] instead (5 ops)

Matrix = Array:matrix(Number)

Returns the matrix stored in the array under specified index. Deprecated, use R[N,matrix] instead (5 ops)

Effect = Array:effect(Number)

Returns the effect stored in the array under specified index. Deprecated, use R[N,effect] instead (5 ops)

String = Array:string(Number)

Returns the string stored in the array under specified index. Deprecated, use R[N,string] instead (5 ops)

ComplexNumber = Array:complex(Number)

Returns the complex stored in the array under specified index. Deprecated, use R[N,complex] instead (5 ops)

Entity = Array:entity(Number)

Returns the entity stored in the array under specified index. Deprecated, use R[N,entity] instead (5 ops)

Matrix4 = Array:matrix4(Number)

Returns the matrix4 stored in the array under specified index. Deprecated, use R[N,matrix4] instead (5 ops)

Ftrace = Array:ftrace(Number)

Returns the ftrace stored in the array under specified index. Deprecated, use R[N,ftrace] instead (5 ops)

Matrix4 = Array:matrix2(Number)

Returns the matrix2 stored in the array under specified index. Deprecated, use R[N,matrix2] instead (5 ops)

WireLink = Array:wirelink(Number)

Returns the wirelink stored in the array under specified index. Deprecated, use R[N,wirelink] instead (5 ops)

Vector4 = Array:vector4(Number)

Returns the vector4 stored in the array under specified index. Deprecated, use R[N,vector4] instead (5 ops)

Quaternion = Array:quaternion(Number)

Returns the quaternion stored in the array under specified index. Deprecated, use R[N,quaternion] instead (5 ops)

RangerData = Array:ranger(Number)

Returns the ranger stored in the array under specified index. Deprecated, use R[N,ranger] instead (5 ops)

Tracedata = Array:tracedata(Number)

Returns the tracedata stored in the array under specified index. Deprecated, use R[N,tracedata] instead (5 ops)

Bone = Array:bone(Number)

Returns the bone stored in the array under specified index. Deprecated, use R[N,bone] instead (5 ops)

Number = Array:number(Number)

Returns the number stored in the array under specified index. Deprecated, use R[N,number] instead (5 ops)

Angle = Array:angle(Number)

Returns the angle stored in the array under specified index. Deprecated, use R[N,angle] instead (5 ops)

Vector = Array:vector(Number)

Returns the vector stored in the array under specified index. Deprecated, use R[N,vector] instead (5 ops)

Matrix4 = Array:setMatrix2(Number, Matrix4)

Sets a variable at specified index. Deprecated, use R[N,matrix2] = X instead (5 ops)

Matrix4 = Array:setMatrix4(Number, Matrix4)

Sets a variable at specified index. Deprecated, use R[N,matrix4] = X instead (5 ops)

Number = Array:setNumber(Number, Number)

Sets a variable at specified index. Deprecated, use R[N,number] = X instead (5 ops)

Entity = Array:setEntity(Number, Entity)

Sets a variable at specified index. Deprecated, use R[N,entity] = X instead (5 ops)

Tracedata = Array:setTracedata(Number, Tracedata)

Sets a variable at specified index. Deprecated, use R[N,tracedata] = X instead (5 ops)

Bone = Array:setBone(Number, Bone)

Sets a variable at specified index. Deprecated, use R[N,bone] = X instead (5 ops)

Ftrace = Array:setFtrace(Number, Ftrace)

Sets a variable at specified index. Deprecated, use R[N,ftrace] = X instead (5 ops)

Angle = Array:setAngle(Number, Angle)

Sets a variable at specified index. Deprecated, use R[N,angle] = X instead (5 ops)

Vector4 = Array:setVector4(Number, Vector4)

Sets a variable at specified index. Deprecated, use R[N,vector4] = X instead (5 ops)

Quaternion = Array:setQuaternion(Number, Quaternion)

Sets a variable at specified index. Deprecated, use R[N,quaternion] = X instead (5 ops)

Effect = Array:setEffect(Number, Effect)

Sets a variable at specified index. Deprecated, use R[N,effect] = X instead (5 ops)

Vector2 = Array:setVector2(Number, Vector2)

Sets a variable at specified index. Deprecated, use R[N,vector2] = X instead (5 ops)

Vector = Array:setVector(Number, Vector)

Sets a variable at specified index. Deprecated, use R[N,vector] = X instead (5 ops)

RangerData = Array:setRanger(Number, RangerData)

Sets a variable at specified index. Deprecated, use R[N,ranger] = X instead (5 ops)

String = Array:setString(Number, String)

Sets a variable at specified index. Deprecated, use R[N,string] = X instead (5 ops)

ComplexNumber = Array:setComplex(Number, ComplexNumber)

Sets a variable at specified index. Deprecated, use R[N,complex] = X instead (5 ops)

Stcontrol = Array:setStcontrol(Number, Stcontrol)

Sets a variable at specified index. Deprecated, use R[N,stcontrol] = X instead (5 ops)

Matrix = Array:setMatrix(Number, Matrix)

Sets a variable at specified index. Deprecated, use R[N,matrix] = X instead (5 ops)

WireLink = Array:setWirelink(Number, WireLink)

Sets a variable at specified index. Deprecated, use R[N,wirelink] = X instead (5 ops)

Angle = Array:pushAngle(Angle)

Saves the data at the end of the array (7 ops)

Vector4 = Array:pushVector4(Vector4)

Saves the data at the end of the array (7 ops)

Vector = Array:pushVector(Vector)

Saves the data at the end of the array (7 ops)

Matrix4 = Array:pushMatrix4(Matrix4)

Saves the data at the end of the array (7 ops)

ComplexNumber = Array:pushComplex(ComplexNumber)

Saves the data at the end of the array (7 ops)

RangerData = Array:pushRanger(RangerData)

Saves the data at the end of the array (7 ops)

Entity = Array:pushEntity(Entity)

Saves the data at the end of the array (7 ops)

Effect = Array:pushEffect(Effect)

Saves the data at the end of the array (7 ops)

WireLink = Array:pushWirelink(WireLink)

Saves the data at the end of the array (7 ops)

Ftrace = Array:pushFtrace(Ftrace)

Saves the data at the end of the array (7 ops)

Stcontrol = Array:pushStcontrol(Stcontrol)

Saves the data at the end of the array (7 ops)

Tracedata = Array:pushTracedata(Tracedata)

Saves the data at the end of the array (7 ops)

Vector2 = Array:pushVector2(Vector2)

Saves the data at the end of the array (7 ops)

Bone = Array:pushBone(Bone)

Saves the data at the end of the array (7 ops)

Number = Array:pushNumber(Number)

Saves the data at the end of the array (7 ops)

Matrix4 = Array:pushMatrix2(Matrix4)

Saves the data at the end of the array (7 ops)

Quaternion = Array:pushQuaternion(Quaternion)

Saves the data at the end of the array (7 ops)

Matrix = Array:pushMatrix(Matrix)

Saves the data at the end of the array (7 ops)

String = Array:pushString(String)

Saves the data at the end of the array (7 ops)

Vector4 = Array:insertVector4(Number, Vector4)

Inserts the variable at the specified position. Moves all other indexes up one step to compensate (7 ops)

WireLink = Array:insertWirelink(Number, WireLink)

Inserts the variable at the specified position. Moves all other indexes up one step to compensate (7 ops)

Effect = Array:insertEffect(Number, Effect)

Inserts the variable at the specified position. Moves all other indexes up one step to compensate (7 ops)

Stcontrol = Array:insertStcontrol(Number, Stcontrol)

Inserts the variable at the specified position. Moves all other indexes up one step to compensate (7 ops)

Tracedata = Array:insertTracedata(Number, Tracedata)

Inserts the variable at the specified position. Moves all other indexes up one step to compensate (7 ops)

Quaternion = Array:insertQuaternion(Number, Quaternion)

Inserts the variable at the specified position. Moves all other indexes up one step to compensate (7 ops)

Entity = Array:insertEntity(Number, Entity)

Inserts the variable at the specified position. Moves all other indexes up one step to compensate (7 ops)

Vector2 = Array:insertVector2(Number, Vector2)

Inserts the variable at the specified position. Moves all other indexes up one step to compensate (7 ops)

Ftrace = Array:insertFtrace(Number, Ftrace)

Inserts the variable at the specified position. Moves all other indexes up one step to compensate (7 ops)

RangerData = Array:insertRanger(Number, RangerData)

Inserts the variable at the specified position. Moves all other indexes up one step to compensate (7 ops)

Matrix4 = Array:insertMatrix2(Number, Matrix4)

Inserts the variable at the specified position. Moves all other indexes up one step to compensate (7 ops)

Angle = Array:insertAngle(Number, Angle)

Inserts the variable at the specified position. Moves all other indexes up one step to compensate (7 ops)

String = Array:insertString(Number, String)

Inserts the variable at the specified position. Moves all other indexes up one step to compensate (7 ops)

Matrix4 = Array:insertMatrix4(Number, Matrix4)

Inserts the variable at the specified position. Moves all other indexes up one step to compensate (7 ops)

Bone = Array:insertBone(Number, Bone)

Inserts the variable at the specified position. Moves all other indexes up one step to compensate (7 ops)

ComplexNumber = Array:insertComplex(Number, ComplexNumber)

Inserts the variable at the specified position. Moves all other indexes up one step to compensate (7 ops)

Vector = Array:insertVector(Number, Vector)

Inserts the variable at the specified position. Moves all other indexes up one step to compensate (7 ops)

Number = Array:insertNumber(Number, Number)

Inserts the variable at the specified position. Moves all other indexes up one step to compensate (7 ops)

Matrix = Array:insertMatrix(Number, Matrix)

Inserts the variable at the specified position. Moves all other indexes up one step to compensate (7 ops)

Number = Array:popNumber()

Deletes and returns the last entry in the array. Be sure not to use popNumber() on a vector or similar, as the data may be lost (7 ops)

Vector2 = Array:popVector2()

Deletes and returns the last entry in the array. Be sure not to use popNumber() on a vector or similar, as the data may be lost (7 ops)

Matrix4 = Array:popMatrix2()

Deletes and returns the last entry in the array. Be sure not to use popNumber() on a vector or similar, as the data may be lost (7 ops)

Vector = Array:popVector()

Deletes and returns the last entry in the array. Be sure not to use popNumber() on a vector or similar, as the data may be lost (7 ops)

Entity = Array:popEntity()

Deletes and returns the last entry in the array. Be sure not to use popNumber() on a vector or similar, as the data may be lost (7 ops)

Matrix4 = Array:popMatrix4()

Deletes and returns the last entry in the array. Be sure not to use popNumber() on a vector or similar, as the data may be lost (7 ops)

RangerData = Array:popRanger()

Deletes and returns the last entry in the array. Be sure not to use popNumber() on a vector or similar, as the data may be lost (7 ops)

WireLink = Array:popWirelink()

Deletes and returns the last entry in the array. Be sure not to use popNumber() on a vector or similar, as the data may be lost (7 ops)

Tracedata = Array:popTracedata()

Deletes and returns the last entry in the array. Be sure not to use popNumber() on a vector or similar, as the data may be lost (7 ops)

Matrix = Array:popMatrix()

Deletes and returns the last entry in the array. Be sure not to use popNumber() on a vector or similar, as the data may be lost (7 ops)

Stcontrol = Array:popStcontrol()

Deletes and returns the last entry in the array. Be sure not to use popNumber() on a vector or similar, as the data may be lost (7 ops)

String = Array:popString()

Deletes and returns the last entry in the array. Be sure not to use popNumber() on a vector or similar, as the data may be lost (7 ops)

ComplexNumber = Array:popComplex()

Deletes and returns the last entry in the array. Be sure not to use popNumber() on a vector or similar, as the data may be lost (7 ops)

Quaternion = Array:popQuaternion()

Deletes and returns the last entry in the array. Be sure not to use popNumber() on a vector or similar, as the data may be lost (7 ops)

Angle = Array:popAngle()

Deletes and returns the last entry in the array. Be sure not to use popNumber() on a vector or similar, as the data may be lost (7 ops)

Effect = Array:popEffect()

Deletes and returns the last entry in the array. Be sure not to use popNumber() on a vector or similar, as the data may be lost (7 ops)

Ftrace = Array:popFtrace()

Deletes and returns the last entry in the array. Be sure not to use popNumber() on a vector or similar, as the data may be lost (7 ops)

Bone = Array:popBone()

Deletes and returns the last entry in the array. Be sure not to use popNumber() on a vector or similar, as the data may be lost (7 ops)

Vector4 = Array:popVector4()

Deletes and returns the last entry in the array. Be sure not to use popNumber() on a vector or similar, as the data may be lost (7 ops)

Stcontrol = Array:unshiftStcontrol(Stcontrol)

Adds the data to the beginning of the array. Will move all other entries up one address (7 ops)

Vector4 = Array:unshiftVector4(Vector4)

Adds the data to the beginning of the array. Will move all other entries up one address (7 ops)

Number = Array:unshiftNumber(Number)

Adds the data to the beginning of the array. Will move all other entries up one address (7 ops)

Ftrace = Array:unshiftFtrace(Ftrace)

Adds the data to the beginning of the array. Will move all other entries up one address (7 ops)

Tracedata = Array:unshiftTracedata(Tracedata)

Adds the data to the beginning of the array. Will move all other entries up one address (7 ops)

RangerData = Array:unshiftRanger(RangerData)

Adds the data to the beginning of the array. Will move all other entries up one address (7 ops)

WireLink = Array:unshiftWirelink(WireLink)

Adds the data to the beginning of the array. Will move all other entries up one address (7 ops)

Quaternion = Array:unshiftQuaternion(Quaternion)

Adds the data to the beginning of the array. Will move all other entries up one address (7 ops)

Vector = Array:unshiftVector(Vector)

Adds the data to the beginning of the array. Will move all other entries up one address (7 ops)

ComplexNumber = Array:unshiftComplex(ComplexNumber)

Adds the data to the beginning of the array. Will move all other entries up one address (7 ops)

Matrix = Array:unshiftMatrix(Matrix)

Adds the data to the beginning of the array. Will move all other entries up one address (7 ops)

Effect = Array:unshiftEffect(Effect)

Adds the data to the beginning of the array. Will move all other entries up one address (7 ops)

String = Array:unshiftString(String)

Adds the data to the beginning of the array. Will move all other entries up one address (7 ops)

Entity = Array:unshiftEntity(Entity)

Adds the data to the beginning of the array. Will move all other entries up one address (7 ops)

Matrix4 = Array:unshiftMatrix4(Matrix4)

Adds the data to the beginning of the array. Will move all other entries up one address (7 ops)

Vector2 = Array:unshiftVector2(Vector2)

Adds the data to the beginning of the array. Will move all other entries up one address (7 ops)

Bone = Array:unshiftBone(Bone)

Adds the data to the beginning of the array. Will move all other entries up one address (7 ops)

Angle = Array:unshiftAngle(Angle)

Adds the data to the beginning of the array. Will move all other entries up one address (7 ops)

Matrix4 = Array:unshiftMatrix2(Matrix4)

Adds the data to the beginning of the array. Will move all other entries up one address (7 ops)

ComplexNumber = Array:shiftComplex()

Deletes and returns the first element of the array, moving other entries down one address to compensate (7 ops)

Vector2 = Array:shiftVector2()

Deletes and returns the first element of the array, moving other entries down one address to compensate (7 ops)

WireLink = Array:shiftWirelink()

Deletes and returns the first element of the array, moving other entries down one address to compensate (7 ops)

Number = Array:shiftNumber()

Deletes and returns the first element of the array, moving other entries down one address to compensate (7 ops)

Effect = Array:shiftEffect()

Deletes and returns the first element of the array, moving other entries down one address to compensate (7 ops)

String = Array:shiftString()

Deletes and returns the first element of the array, moving other entries down one address to compensate (7 ops)

Entity = Array:shiftEntity()

Deletes and returns the first element of the array, moving other entries down one address to compensate (7 ops)

Matrix4 = Array:shiftMatrix2()

Deletes and returns the first element of the array, moving other entries down one address to compensate (7 ops)

Bone = Array:shiftBone()

Deletes and returns the first element of the array, moving other entries down one address to compensate (7 ops)

Stcontrol = Array:shiftStcontrol()

Deletes and returns the first element of the array, moving other entries down one address to compensate (7 ops)

Matrix = Array:shiftMatrix()

Deletes and returns the first element of the array, moving other entries down one address to compensate (7 ops)

RangerData = Array:shiftRanger()

Deletes and returns the first element of the array, moving other entries down one address to compensate (7 ops)

Angle = Array:shiftAngle()

Deletes and returns the first element of the array, moving other entries down one address to compensate (7 ops)

Matrix4 = Array:shiftMatrix4()

Deletes and returns the first element of the array, moving other entries down one address to compensate (7 ops)

Tracedata = Array:shiftTracedata()

Deletes and returns the first element of the array, moving other entries down one address to compensate (7 ops)

Ftrace = Array:shiftFtrace()

Deletes and returns the first element of the array, moving other entries down one address to compensate (7 ops)

Vector = Array:shiftVector()

Deletes and returns the first element of the array, moving other entries down one address to compensate (7 ops)

Vector4 = Array:shiftVector4()

Deletes and returns the first element of the array, moving other entries down one address to compensate (7 ops)

Quaternion = Array:shiftQuaternion()

Deletes and returns the first element of the array, moving other entries down one address to compensate (7 ops)

Matrix4 = Array:removeMatrix4(Number)

Deletes and returns the specified entry, moving subsequent entries down to compensate (7 ops)

Ftrace = Array:removeFtrace(Number)

Deletes and returns the specified entry, moving subsequent entries down to compensate (7 ops)

String = Array:removeString(Number)

Deletes and returns the specified entry, moving subsequent entries down to compensate (7 ops)

Stcontrol = Array:removeStcontrol(Number)

Deletes and returns the specified entry, moving subsequent entries down to compensate (7 ops)

Number = Array:removeNumber(Number)

Deletes and returns the specified entry, moving subsequent entries down to compensate (7 ops)

WireLink = Array:removeWirelink(Number)

Deletes and returns the specified entry, moving subsequent entries down to compensate (7 ops)

Matrix = Array:removeMatrix(Number)

Deletes and returns the specified entry, moving subsequent entries down to compensate (7 ops)

ComplexNumber = Array:removeComplex(Number)

Deletes and returns the specified entry, moving subsequent entries down to compensate (7 ops)

Quaternion = Array:removeQuaternion(Number)

Deletes and returns the specified entry, moving subsequent entries down to compensate (7 ops)

Vector = Array:removeVector(Number)

Deletes and returns the specified entry, moving subsequent entries down to compensate (7 ops)

Entity = Array:removeEntity(Number)

Deletes and returns the specified entry, moving subsequent entries down to compensate (7 ops)

RangerData = Array:removeRanger(Number)

Deletes and returns the specified entry, moving subsequent entries down to compensate (7 ops)

Angle = Array:removeAngle(Number)

Deletes and returns the specified entry, moving subsequent entries down to compensate (7 ops)

Matrix4 = Array:removeMatrix2(Number)

Deletes and returns the specified entry, moving subsequent entries down to compensate (7 ops)

Effect = Array:removeEffect(Number)

Deletes and returns the specified entry, moving subsequent entries down to compensate (7 ops)

Bone = Array:removeBone(Number)

Deletes and returns the specified entry, moving subsequent entries down to compensate (7 ops)

Vector2 = Array:removeVector2(Number)

Deletes and returns the specified entry, moving subsequent entries down to compensate (7 ops)

Vector4 = Array:removeVector4(Number)

Deletes and returns the specified entry, moving subsequent entries down to compensate (7 ops)

Tracedata = Array:removeTracedata(Number)

Deletes and returns the specified entry, moving subsequent entries down to compensate (7 ops)

Number = Array:pop()

Removes the last entry in the array and returns 1 if removed (2 ops)

Number = Array:shift()

Removes the first element of the array; all other entries will move down one address and returns 1 if removed (3 ops)

Number = Array:remove(Number Index)

Removes the specified entry, moving subsequent entries down to compensate and returns 1 if removed (2 ops)

Number = Array:unset(Number Index)

Force removes the specified entry, without moving subsequent entries down and returns 1 if removed (2 ops)

Number = Array:exists(Number Index)

Returns 1 if the array contains any value at specified index (1 ops)

Number = Array:count()

Returns the number of entries in the array (3 ops)

Array:clear()

Clears the array (1 ops)

Array = Array:clone()

Returns a copy of the array (1 ops)

Number = Array:sum()

Adds all numbers in the array together and returns result (1 ops)

Number = Array:average()

Gives the average of all numbers in array (1 ops)

Number = Array:min()

Returns the smallest number in array (1 ops)

Number = Array:minIndex()

Returns the index of the smallest number in array (1 ops)

Number = Array:max()

Returns the largest number in array (1 ops)

Number = Array:maxIndex()

Returns the index of the largest number in array (1 ops)

String = Array:concat()

Concatenates all values in the array (1 ops)

String = Array:concat(String Delimiter)

Concatenates all values in the array with the specified string in between each (1 ops)

String = Array:concat(String Delimiter, Number Startindex)

Concatenates all values in the array, starting at index N, with string S in between each (1 ops)

String = Array:concat(String Delimiter, Number Startindex, Number Endindex)

Concatenates all values in the array, starting at index N1 and ending at N2, with string S in between each (1 ops)

String = Array:concat(Number Startindex)

Concatenates all values in the array, starting at index N (1 ops)

String = Array:concat(Number Startindex, Number Endindex)

Concatenates all values in the array, starting at index N1 and ending at N2 (1 ops)

String = Array:id()

Returns the unique ID of the array (1 ops)

Array = Array:add(Array Other)

Adds the contents of the second array to the end of the first array. Returns new array (1 ops)

Array = Array:merge(Array Other)

Merges R2 with R. Any variables with the same indexes are overwritten by R2's variables (1 ops)