CameraMove - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: CameraMove (
/showthread.php?tid=658515)
CameraMove -
Hunud - 05.09.2018
Is there a way to camera follow a falling object ? Let's say i have something like this.
Code:
MoveObject(pVehicleBox[i][VehicleParachute], pVehicleBox[i][VehicleBoxeLand][0], pVehicleBox[i][VehicleBoxeLand][1], pVehicleBox[i][VehicleBoxeLand][2], 7, 0, 0, 1000);
So yea, how to make a camera follow falling object with those coords since vehiclebox will fall to the ground ?
Re: CameraMove -
Shinja - 05.09.2018
https://sampforum.blast.hk/showthread.php?tid=330879
This will help you
Re: CameraMove -
Hunud - 05.09.2018
Arguments does not meet with the def.
Code:
InterpolateCameraPos(pVehicleBox[i][VehicleParachute], pVehicleBox[i][VehicleBoxeLand][0], pVehicleBox[i][VehicleBoxeLand][1], pVehicleBox[i][VehicleBoxeLand][2], 5000);
I tried with adding 'i' or 'playerid' problem is same.
Re: CameraMove -
Sew_Sumi - 05.09.2018
Code:
InterpolateCameraPos(playerid, Float:FromX, Float:FromY, Float:FromZ, Float:ToX, Float:ToY, Float:ToZ, time, cut = CAMERA_CUT)
You need to use the params correctly.
If i is the playerid to be shown, then you should have (i, firstx, firsty, firstz, lastx, lasty, lastz, 5000)
That's why it's showing arguments not meeting definition, because it's expecting what is above, in that format, not what you are handing it.