Its basically how the game represents where every entity is in the game. You can teleport any object to a matrix location. You can think of the matrix as a spawn point. Its just a point somewhere in the map with a certain direction (and maybe a speed).Skyhammer_216 wrote:...What is the player's 'matrix'
There is a lua function that allows you to create a matrix (the Galactic Conquest scripts use it), but I've never fooled around with it. In theory, you use GetMatrix() on the player's unit. Then you take its result, change the facing value, then teleport the player to the new matrix. This will have the effect of exactly reversing the direction the player is facing.
It can be done if someone figures out how to understand the results of GetMatrix(). I'm thinking it might be a lua table, but I've really haven't tried to find out. You would have to get the result, then play around with its numbers to see what changes makes what change ingame. The Example Finder can show you all the places the game uses the matrix functions.
Basically, referencing any point in the map and saving data are the last two important lua things that remain unfinished (if thats wrong, what did I forget?). I believe both can be done, but I haven't had the time to look at them.