User Tools

Site Tools


4rpl:commands:getunitsettings

This is an old revision of the document!


Index

:!: Available in version 1.3 and later.

GetUnitSettings

GetUnitSettings(<-unit) ->unitSettingsTable

Description

Returns a table containing the settings for the specified unit. For certain built-in units, like an emitter, the settings are described in the table below. For these units, the settings are case sensitive. For custom units, the values returned are all defined Input Variables for all attached scripts. If there are multiple scripts, the Input Variables are merged and duplicates will overwrite each other.

Built-in Unit Names and Settings

Start (int)
The start delay, in frames, for when the emitter begins emitting.
Interval (int)
The emission interval, in frames.
Payload (int)
How much to emit at each emission.

Examples

GetUnitSettings(self) ->unitSettings

Index

4rpl/commands/getunitsettings.1647871358.txt.gz · Last modified: 2025/02/14 14:56 (external edit)