Posts: 285
Threads: 44
Joined: Feb 2013
Reputation:
0
Hey,
I've been looking for a valid solution to get an object's offset to a vehicle but I couldn't find any, at least couldn't find a working one (some of them works but the calculation is not proper).
Do any of you know a way to calculate it or is there a valid include/filterscript that calculates it properly?
Posts: 285
Threads: 44
Joined: Feb 2013
Reputation:
0
1- The link is broken, I saw it before.
2- This only works when the angle of the vehicle is zero or something like that, it's one of those I stated in my first post which doesn't calculate it properly.
3- I'm aware of this function but I've never tried to calculate offsets using it.
4- These looks way better, I'll give them a shot.
If you have a better idea, feel free to post please!
Posts: 285
Threads: 44
Joined: Feb 2013
Reputation:
0
Well, seems like we have an include created by Gamer_Z to GetVehicleMatrix and POSITION from VEHICLE OFFSET but that's actually not what I'm looking for.
What I'm looking for is, getting offsets from x, y, z coordinates. Basically, it's for a vehicle-object-attach editor.
Posts: 6,242
Threads: 8
Joined: Jun 2008
11.08.2017, 00:30
(
Последний раз редактировалось Sew_Sumi; 11.08.2017 в 05:01.
)
-edit-
Yea, I didn't understand that post.
Posts: 285
Threads: 44
Joined: Feb 2013
Reputation:
0
Well, this seems to be working, thanks.
Can't we actually calculate offsetRX, ry, rz? Well, I attach the object to vehicle with object's last rx, ry, rz but they're not correct when it's attached to the vehicle.
- Your include works fine and calculates offsetx, y, z properly, what about rx, ry and rz?