[Pawn] How can I position the camera in front of the vehicle? - Printable Version + open.mp forum (https://forum.open.mp) -- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3) --- Forum: Pawn Scripting (https://forum.open.mp/forumdisplay.php?fid=10) --- Thread: [Pawn] How can I position the camera in front of the vehicle? (/showthread.php?tid=2183) |
How can I position the camera in front of the vehicle? - Next - 2021-07-18 I'm trying to make a system where I need to position the camera in front of the vehicle so that it "points" to the vehicle without setting the coordinates in an array, having a "radius" using a GetVehicleModelInfo function. I managed to do a function where I can get the front of the vehicle using some calculations. But I can't point the camera at the vehicle at the right angle. PHP Code: GetVehicleFront(vehicleid, &Float:x, &Float:y) btw, is this function correct?? RE: How can I position the camera in front of the vehicle? - JR_Junior - 2021-07-30 PHP Code: stock Float:GetPosInFrontOfVehicle(vehicleid, &Float:x, &Float:y, Float:distance) PHP Code: new Float:Pos[3]; RE: How can I position the camera in front of the vehicle? - Awide - 2021-07-30 Do you want the camera to be in front of the vehicle, and look at the vehicle? |