This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| 4rpl:commands:self [2021/03/03 13:54] – typo Karsten75 | 4rpl:commands:self [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 8: | Line 8: | ||
| 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. Note 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 ===== | ||