CameraMove
#1

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 ?
Reply
#2

https://sampforum.blast.hk/showthread.php?tid=330879

This will help you
Reply
#3

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.
Reply
#4

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)