InterpolateCamera while spectating
#1

SOLVED

Is there any way to use InterpolateCamera while spectating? As in having a camera passing by a landscape while you cant see the map, money bar, weapon e.t.c?

Any help is appreciated.
Reply
#2

Hmm?
Reply
#3

Just use it normally, it works for me while the player is spectating. :S
What's your problem?
Reply
#4

I just tried InterpolateCamera together with spectate mode in OnPlayerSpawn and it worked.. hmm..

pawn Код:
public OnPlayerSpawn(playerid) {
    if(!PlayerLogged[playerid]) {
        TogglePlayerSpectating(playerid, 1);
        InterpolateCameraPos(playerid, 1215.722900, 979.580139, 62.094230, 2761.392333, 2875.322509, 68.985809, 60000);
        InterpolateCameraLookAt(playerid, 1213.295410, 983.934265, 61.707897, 2758.177246, 2871.771240, 67.553054, 60000);
    }
    return 1;
}
Reply
#5

It should work correctly, if it doesn't just put a short timer after TogglePlayerSpectating and call a function with InterpolateCamera...
I hope you understand me, if you didn't just ask again.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)