30.11.2014, 19:43
So i want to know if there is a function that get the player offset when its inside a vehicle.
I tried:
But doesnt work cause when the player is inside a car both coordinates are the same.
And im doing this to take the perfect position to put the object (to attach the camera) that is on player's head.
cause when i attach the object to the player, when driving, the car bugs, like a earthquake.
I tried:
Код:
GetPlayerPos(playerid, x, y, z); GetVehiclePos(GetPlayerVehicleID(playerid), vx, vy, vz); offsetx = x - vx; offsety = y - vy; offsetz = z - vz;
And im doing this to take the perfect position to put the object (to attach the camera) that is on player's head.
cause when i attach the object to the player, when driving, the car bugs, like a earthquake.