User Tools

Site Tools


crpl:docs:self

This is an old revision of the document!


~~DISCUSSION~~ <- CRPL reference <- Unit Commands

Self

ArgumentsResultNotation
Unit UID for current unit – i1

Description

Pushes the unique unit ID (an int) for the current unit to the stack.

Examples

Self trace
#Creates a unit then tells it its creator's UID
"CRPLCORE" CurrentCoords CreateUnit ->unit
<-unit "doThings" AddScriptToUnit
<-unit "doThings" "myCreator" Self SetScriptVar
crpl/docs/self.1385835119.txt.gz · Last modified: 2014/10/01 15:02 (external edit)