World position from vehicle offset
#1

Yoo, I was wondering on how I would get the position of the offset of a vehicle in world values. For example, I'd use https://sampwiki.blast.hk/wiki/GetVehicleModelInfo to get the position of the fuel cap. However when this is done and I want to get the coordinates, and all it returns is 0 as I only use the GetVehicleModelInfo function in order to retrieve values. I then began a search to see if anyone had the solution, and I came across a post where something about trigonometry was mentioned. Trigonometry will be used to calculate the world position from a vehicle position (and offset) which will return the value of the fuel cap, or any example you wish to use. I have no idea how to do trigonometry in association with coding as that's not the kind of thing I get taught in math class. If someone could create a function for me or explain how to then it would be greatly appreciated
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)