I would like an object to act as a "tail" on a vehicle.
Unfortunately, this is the best I've come up with:
#loop
tail setdir getdir vehicle
tail setPos [(getPos vehicle select 0) - 1.2, (getPos vehicle select 1) + 1.2, 0]
~0.05
goto "loop"
The only problem with this little script is that the "tail" does not stay behind the vehicle. I know why: the "setPos [(getpos..." line only puts the "tail" like north, south, west or east of the vehicle.
Now, how can I make the "tail" stay behind the vehicle regardless of what direction the vehicle is facing?
Thanks