How to change camera angle while it's attached to an object?
#3

Quote:
Originally Posted by NaS
Посмотреть сообщение
I'm pretty sure SetPlayerCameraLookAt works, but it will always freeze the camera so that the player cannot look around anymore.

You can "unfreeze" it by attaching it again but afaik it will "reset" the camera angle to face north again.
Nope, it dosn't work...
PHP код:
CMD:objtest(playerid)
{
    new 
Float:coordsfrom[3], Float:coordsto[3];
    
coordsfrom[0] = 2058.173828coordsfrom[1] = 794.064025coordsfrom[2] = 35.411571;
    
coordsto[0] = 2055.529785coordsto[1] = 1132.966064coordsto[2] = 40.313831;
    
SetPlayerCameraLookAt(playeridcoordsto[0], coordsto[1], coordsto[2], CAMERA_CUT);
    
SnowObject[playerid] = CreateDynamicObject(18864coordsfrom[0], coordsfrom[1], coordsfrom[2], 000, -1, -1, -1, -1);
    
MoveDynamicObject(SnowObject[playerid], coordsto[0], coordsto[1], coordsto[2], 19);
    
AttachCameraToDynamicObject(playeridSnowObject[playerid]);
    
TogglePlayerControllable(playerid0);
    return 
1;

This is one of the method I tried... what's wrong? The angle still not change(I think it remain blocked to North)...
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)