User Tools

Site Tools


4rpl:commands:self

Differences

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

Link to this comparison view

Next revision
Previous revision
4rpl:commands:self [2021/01/08 11:01] – external edit 127.0.0.14rpl:commands:self [2021/03/17 19:36] (current) – Note on COlsole and Global Control Karsten75
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.  '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. 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 =====
4rpl/commands/self.1610121708.txt.gz · Last modified: 2021/01/08 11:01 by 127.0.0.1