User Tools

Site Tools


4rpl:commands:self

Index

Self

Self

Description

Pushes the UID of the current unit to the stack. A unit UID is needed by many commands to determine which unit to act on. 'Self' is a way to reference the unit that the executing script is attached to. Note that unit UID's are permanent and persist over save/load.

Note: When run in Console scripts, or in Global Control (Pre or Post), -1 is returned.

Examples

SetUnitCreeperDamages(Self false)

Index

4rpl/commands/self.txt · Last modified: 2021/03/17 19:36 by Karsten75