22.07.2015, 02:24
Hello Everyone. I need your help, I use this cameditor filterscript to create cinematic shots for my upcoming SA:MP video. Long story short, I use a command to load the cinematic camera i.e "/a1cam". Everything works fine, its just that I don't know how to end it.
The shot is 5 seconds long (5000 M.seconds), I added SetCameraBehindPlayer(playerid); under the command, but that didn't fix it. So how do I reset the camera to the player after the cinematic shot is done?
Code:
if (strcmp("/a1cam", cmdtext, true, 10) == 0)
{
TogglePlayerSpectating(playerid, 1);
InterpolateCameraPos(playerid, -2256.687500, -1802.869628, 422.829467, -2235.892089, -1764.994384, 422.829467, 5000);
InterpolateCameraLookAt(playerid, -2258.667968, -1799.940795, 426.364990, -2239.415039, -1765.469116, 426.345611, 5000);
return 1;
Thanks!
Picture from the cinematic shot here:
The shot is 5 seconds long (5000 M.seconds), I added SetCameraBehindPlayer(playerid); under the command, but that didn't fix it. So how do I reset the camera to the player after the cinematic shot is done?
Code:
if (strcmp("/a1cam", cmdtext, true, 10) == 0)
{
TogglePlayerSpectating(playerid, 1);
InterpolateCameraPos(playerid, -2256.687500, -1802.869628, 422.829467, -2235.892089, -1764.994384, 422.829467, 5000);
InterpolateCameraLookAt(playerid, -2258.667968, -1799.940795, 426.364990, -2239.415039, -1765.469116, 426.345611, 5000);
return 1;
Thanks!
Picture from the cinematic shot here: