Clutter script
From TargetWiki
A clutter script allows static terrain objects to be generated automatically. Clutter scripts are attached to a Terrain Source.
[edit]
Functions
- generate( <Terrain Source> )
- When the data source generates a tile, the generate() function in the clutter script is called. It takes a single parameter, which is the Terrain Source that is generating a tile.
[edit]
Usage
The generate() function in a clutter script is called each time a Terrain Source generates a tile. The clutter script can then examine the properties of the Terrain Source and decide which, if any, static terrain objects to generate.
Categories: Documentation | Dev Guide | Terrain | Lua
