- Documentation
- Shared functions
- setElementMatrix
Function
setElementMatrix
Sets the element's position and rotation from a matrix (a 4x4 table or a Matrix object).
Syntax
bool setElementMatrix(element theElement, table matrix)Arguments
theElementelement- The element.
matrixtable- The matrix.
Returns
true on success.
Example
setElementMatrix(copy, getElementMatrix(original))
Notes
Client. Works in a client script too; a server element then changes for this player only.