scatter_system_brush table reference - Stingray Lua API Reference

scatter_system_brush table reference

Description

This type of table defines the settings for new scatter brushes.

You can create tables with any or all of these members and pass them in calls to stingray.ScatterSystem.make_brush().

Data Members

A value of -2 means that the unit starts sliding from 2 meters below its final position.

Possible values are:

  • POP: Units will pop in and out of existence.
  • SLIDE_Z: Units will slide into existence along their z-axis.
  • SCALE Units will scale into existence.

fade_range : number

The distance in meters that the user must move for the unit to be faded in completely when a method other than POP is used.

Typically you don't have to set this, because it is set to reasonable values by default: 0 meters for SLIDE_Z, and 1.0 for SCALE.

unit : string

The type of the unit that the brush spawns.

Usually this value is slightly higher than spawn_distance in order to prevent units from flickering on and off when the player moves. For example, spawn_distance might be 50 meters and unspawn_distance might be 55 meters.