User Tools

Site Tools


4rpl:commands:self

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
4rpl:commands:self [2021/03/03 08:54] – typo Karsten754rpl:commands:self [2021/03/17 19:36] (current) – Note on COlsole and Global Control Karsten75
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.  'Self' is a way to reference the unit that the 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. 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 =====
4rpl/commands/self.1614779660.txt.gz · Last modified: 2021/03/03 08:54 by Karsten75