Luawe the Wayfarer Engine's scripting language All pages

things

Finding the level's things, and making new ones.

things.find

things.find(name)

The first thing of the level with that name (an object, a piece of floor, a text or a group), or nil.

things.all

things.all(name)

A list of every thing with that name.

things.new

things.new(kind, properties?)

Makes a new thing while the level runs: "block", "saw", "spike", "deco", "floor" or "text". properties: x and y (where its middle goes), w and h, name, text and size (a text's), life (seconds until it goes), and any other number it has.