This is an old revision of the document!
~~DISCUSSION~~ <- CRPL reference <- Unit Commands
| Arguments | Result | Notation | 
|---|---|---|
| Unit UID for current unit |  – i1 | 
Pushes the unique unit ID (an int) for the current unit to the stack.
Self trace
#Creates a unit then tells it its creator's UID in the "myCreator" variable "CRPLCORE" CurrentCoords CreateUnit ->unit <-unit "doThings" AddScriptToUnit <-unit "doThings" "myCreator" Self SetScriptVar