Index

SetUnitPosition

SetUnitPosition(<-UID <-pos)

Description

Sets the 3D position of a unit. The pos argument is a vector that represents the position of the unit is space. The X and Z positions are where on the map the unit is, and the Y coordinate is the height, or elevation, of the unit. Note that is moves the unit in space to any location. It can be used to move a unit above or below the terrain.

Examples

SetUnitPosition(<-UID V3(42 23 5))

Index