World position from vehicle offset
#6

Quote:
Originally Posted by Stylock
View Post
Idk what you're doing, but I noticed one mistake:
Code:
GetVehicleModelInfo(GetPlayerVehicleID(playerid),VEHICLE_MODEL_INFO_WHEELSFRONT,vx,vy,vz);
You need to pass the model ID, not the vehicle ID
Ahh, silly mistake. What I'm trying to do is get the offset values, and return it in the world x,y,z. So as a test I could create an object where the values I get from the offset info, then do some extra changing around.

So, vehicle pos+vehicle offset = object and world value. The object will be created at the coordinates from the offset values
Reply


Messages In This Thread
World position from vehicle offset - by WillyP - 22.06.2013, 16:53
Re: World position from vehicle offset - by Stylock - 22.06.2013, 18:28
Re: World position from vehicle offset - by WillyP - 22.06.2013, 18:52
Re: World position from vehicle offset - by WillyP - 22.06.2013, 19:22
Re: World position from vehicle offset - by Stylock - 22.06.2013, 19:33
Re: World position from vehicle offset - by WillyP - 22.06.2013, 20:14
Re: World position from vehicle offset - by Stylock - 22.06.2013, 22:03
Re: World position from vehicle offset - by WillyP - 23.06.2013, 10:44

Forum Jump:


Users browsing this thread: 1 Guest(s)