~3
_dir = getDir player
_pos = getPos player
; optional direction change of 'bang'
bang setDir _dir
; place infront of the player
bang setPos [(_pos select 0)+(sin _dir), (_pos select 1)+(cos _dir), 0]
~3
Setting a unit's direction (0-360°):
unitName setDir 90