Wow BraTTY,
that really is a good script .... and a good addon too.
You even managed to animate the wheels on the PAK, but it looks like it will only work on the PAK.
_trailer animate ["wheels", _aphase]
So I will have to figure out another way to animate the wheels of a trailer.
By the way: did you also have problems with "orbiting" objects? 'cause when towing, the PAK is one of those "objects that don't adjust to terrain".
Now I am working with the SetVelocity command to animate the wheels ,but somehow this makes the trailer float a couple of cm's above ground....don't know why,but I'm still working on it.......
SetVelocity does make bumping the trailer into things more realistic, as the trailer no longer rides right through the object as it does when only SetPos is used, but actually collides with objects.
Also I changed the helperobject from "radio" to "logic" as I think the Gamelogic object has even less polygons than the "radio" model,but that's only a minor change
_Trailerhelper = "Logic" camcreate (getpos _Trailer)
Hope to figure Setvelocity problems out soon and will post a new version of the script after that.
Regards, Muts
*edit*
It looks like Setvelocity is not the answer, it causes more trouble than it solves, especially on slopes.
So now I will have to look for the animation OFP uses to make wheels turn, perhaps it will be possible to animate steering as well( nice for towing cars).
If anyone knows what the names of those animations are, please tell me.