What it does
water.create brings a water object into being: it is how the rest of the script comes to have one. It takes options. options is optional.
Signature
water.create(options?)Arguments
optionsoptional
Example · generated
function start() { water.create({});}water.create is called with values of the shape its signature asks for. The code sits in start(), which the engine calls once, when the entity spawns.