Am I the only one to have problems with _camera camSetDir ?
_xAlexi = getPos Alexi select 0
_yAlexi = getPos Alexi select 1
_dirAlexi = getDir Alexi
_camera camSetPos [_xAlexi+0.25*sin(_dirAlexi),_yAlexi+0.25*cos(_dirAlexi),1.9]
_camera camSetDir _dirAlexi
Puts the camera in the correct place but it just points North.
But:
_xAlexi = getPos Alexi select 0
_yAlexi = getPos Alexi select 1
_dirAlexi = getDir Alexi
_camera camSetPos [_xAlexi+0.25*sin(_dirAlexi),_yAlexi+0.25*cos(_dirAlexi),1.9]
_camera camSetTarget [_xAlexi+sin(_dirAlexi),_yAlexi+cos(_dirAlexi),1.9]
Works, even though it should have the same result.
All I am trying to do is to start a cut scene as viewed from Alexi's point of view. It must have been done a million times.