Wiki/Guides/Lua/Stormworks API

Callbacks
These are callback functions that can be added to a script and are called automatically when their specified conditions are met, the simplest callback function is  which is called every game tick.

onTick(game_ticks)
Called every game tick. refers to the number of ticks that have passed this frame (normally 1, while sleeping 400).

matrix.multiply
Multiplies two matrices together.

matrix.invert
Inverts a matrix.