This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
4rpl:commands:self [2021/01/08 16:01] – external edit 127.0.0.1 | 4rpl:commands:self [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 7: | Line 7: | ||
===== Description ===== | ===== 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. ' | 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. ' | ||
- | executing script is attached to. Not that unit UID's are permanent and persist over save/load. | + | 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 ===== | ===== Examples ===== |