Home   Help Search Login Register  

Author Topic: Barrels in back?  (Read 455 times)

0 Members and 1 Guest are viewing this topic.

Harnu

  • Guest
Barrels in back?
« on: 02 Apr 2003, 01:55:00 »
I'm trying to create a script in which barrels can be hauled in the back of a boat.  A few troubles I've encoureted:

1) The barrles "push" the boat forward even though they are in the back not touching anything.

2) If you turn, the barrels float beside the boatand aren't staying in cargo.

How can I keep the barrels in the back cargo section of the boat?  The boat i'm using is the standard BIS "boat" for east.

Before I start writing a big script I start with just a simple one to see if I can do it.  I wrote this and am not sure how to keep the barrels IN the boat.

Code: [Select]
#start

_x = getpos boat1 select 0
_z = getpos boat1 select 1
_y = getpos boat1 select 2

_dirboat1 = getdir boat1
barrel1 setdir (_dirboat1)

Barrel1 setpos [(_x) - 1.5, (_z) - 2, (_y) + 1.75]

goto "start"

Like I said, simple just to see if I can do it.