Hello all,
When it comes to getting the coordinates or bone for that matter of vehicle modifications, a few challenges can arise. The issue I am primarily faced with is the lack of ways to get the bone position of modified exhausts (changed via SetVehicleMod()).
Calling the native, GetEntityBoneIndexByName(), with the bone name “exhaust” will only ever reference the stock exhaust location, even if you try “exhaust_2” all the way through to “exhaust_16”, it will not provide the location/s of the other exhaust exits.
I have even tried a simple debug script which runs through bones 0 through to 1,000 and not a single bone references these alternative/modified exhaust exit points.
After having a look through the game’s files, i have concluded that there is a seperate .ytf for most of, if not all, of these modified exhausts.
This leads me to think of these exhausts as almost props that are attached to the vehicle in some manner. However, to my knowledge, there is no way (at least currently) to get this prop/objects data.
I have thought about trying to construct a new native that would be able to pull this data - as I assume somewhere in the base code there would be something of use. But i just don’t have the technical ability at this stage.
Just wanted to put this out there and see if anyone has any ideas on potential method to resolve this issue?
Thank you for taking the time to read this and I look forward to reading potential solutions