Get player offset from a vehicle
#1

So i want to know if there is a function that get the player offset when its inside a vehicle.

I tried:
Код:
GetPlayerPos(playerid, x, y, z);
GetVehiclePos(GetPlayerVehicleID(playerid), vx, vy, vz);
offsetx = x - vx;
offsety = y - vy;
offsetz = z - vz;
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.
Reply


Messages In This Thread
Get player offset from a vehicle - by Rodney Francalim - 30.11.2014, 19:43
Re: Get player offset from a vehicle - by Threshold - 01.12.2014, 01:36
Re: Get player offset from a vehicle - by Abagail - 01.12.2014, 01:42

Forum Jump:


Users browsing this thread: 1 Guest(s)