This Unit

in a Unit ON or OFF script this will be set to the name of the unit. If you need to reference the parent unit in it's scripts this will save you having to edit scripts all over the place if you want to change unit names in the future.

Usage:

thisUnit
returns text, the name of the unit who's ON or OFF script is being run.

Examples:

--in the ON script of a unit
turnoff (thisUnit) in 2 * minutes
dictionary/unitinformation/thisunit.txt · Last modified: 2009/09/28 17:11 by James Sentman
CC Attribution-No Derivative Works 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0