Camera Position help please! -
Wizz123 - 02.02.2014
I have tried this stuff on several functions like OnPlayerConnect OnPlayerRequestClass and stuff but it just shows the default camera position san andreas have, please help me here is my code and its set on OnPlayerRequestClass right now
pawn Код:
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid, 521.6727, -1426.9231, 15.9609);
InterpolateCameraPos(playerid, 524.134155, -1411.011596, 33.327163, 524.134155, -1411.011596, 33.327163, 1000);
InterpolateCameraLookAt(playerid, 521.650695, -1415.331420, 32.913574, 521.650695, -1415.331420, 32.913574, 1000);
SetPlayerWeather(playerid, 16);
SetSpawnInfo(playerid, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
TogglePlayerSpectating(playerid, 1);
Re: Camera Position help please! -
Threshold - 02.02.2014
Try putting TogglePlayerSpectating BEFORE you set the camera positions.
EDIT: TogglePlayerSpectating will most likely ruin your Class Selection, so OnPlayerRequestClass is not advised.
Re: Camera Position help please! -
XStormiest - 02.02.2014
For what i see in your code you want to have a cutscene and then the cutscene to be looking at your player's pos and move to a direction, time set , weather and virtual world , but that TogglePlaySpectating must not be there perhaps if you want to ruin everything, TogglePlayerSpectating is used only if you want to spectate something or someone....
Also SetSpawnInfo will set your coords and skin, ammo , weapons to the countryside, you'll be a cj unarmed in the middle of nowhere
Put that in OnPlayerRequestClass, but delete the
Код:
TogglePlayerSpectating
SetSpawnInfo
Re: Camera Position help please! -
Konstantinos - 02.02.2014
Quote:
Originally Posted by XStormiest
TogglePlayerSpectating is used only if you want to spectate something or someone....
|
No, it can be used to hide the huds too and many use it to hide them and they also use SetSpawnInfo to spawn the player immediately so the buttons:
< SPAWN >
are not
shown/able to be selected.
Re: Camera Position help please! -
Wizz123 - 02.02.2014
So there is no fix..?