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 in the "myCreator" variable
"CRPLCORE" CurrentCoords CreateUnit ->unit
<-unit "doThings.crpl" AddScriptToUnit
<-unit "doThings.crpl" "myCreator" Self SetScriptVar
crpl/docs/self.1412190170.txt.gz · Last modified: 2014/10/01 15:02 by 127.0.0.1