07.09.2012, 14:52
Okay, I want to create a series of "InterpolateCameraPos" and "InterpolateCameraLookAt" functions using timers and textdraws to create cutscenes similar to singleplayer. my question is, do they queue? For Example
Is my current script for the first scene of a cutscene, how can I add a second set of InterplateCameraPos inside that function? Can I queue them or?
pawn Код:
if(cutsceneid == 1)
{
TextDrawShowForPlayer(playerid, WIDESCREEN_TOP[playerid]);
TextDrawShowForPlayer(playerid, WIDESCREEN_BOTTOM[playerid]);
TogglePlayerSpectating(playerid, 1);
if(CutsceneScene[playerid] == 0)
{
CutsceneScene[playerid] = 1;
InterpolateCameraPos(playerid, -2170.9817, -400.8776, 130.2300, -2176.4348, 1360.3551, 130.6170, 100000, CAMERA_MOVE);
InterpolateCameraLookAt(playerid, -2176.4348, 1360.3551, 55.6170, -2176.4348, 1360.3551, 130.6170, 100000, CAMERA_MOVE);
}
}
return 1;