For units that does exist, GetUnitPosition returns a vector containing the position of the unit.
If the unit does not exist, then nothing is returned. This means that extraordinary care has to be taken to inspect the stack in the eventuality that the unit does not exist.
For units that does exist, GetUnitPosition returns a vector containing the position of the unit.
If the unit does not exist, then nothing is returned. This means that extraordinary care has to be taken to inspect the stack in the eventuality that the unit does not exist.
Recreate. On a map, place one unit (UID=1)
Run this code in the console:
Possible Console output is: