Home
›
OFPEC FAQ › How do you instantly move a unit to another position?
How do you instantly move a unit to another position?
This useful trick allows you to move an object or a unit to a new position. The variable new_position is the position(array) at which you wish the unit to appear, however not many mission editors write the positional array as three numbers in brackets i.e. [10,263,0].
unit_name setpos new_position
A much more useful method is to place an empty marker on the map and use its positional array instead, like this:
unit_name setpos getmarkerpos "mk_barracks"