In the editor execute
player attachto [nearestBuilding player, [0,0,10]]
try to change direction:
player setVectorDir [1,0,0];
press EXEC -> player turns right 90 degrees. Press Ecs to close debug console -> player returns to default direction.
try
player setVectorDirAndUp [[1,0,0],[0,0,1]] -> works
player setDir 180 -> works