storage.load

Section: Storage

What it does

storage.load brings a storage object into being: it is how the rest of the script comes to have one. It takes key and default. default is optional.

Signature

storage.load(key, default?)

Arguments

  • key
  • defaultoptional

Example · generated

function start() {  storage.load('w');}

storage.load 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.

6 members in storage