Spline Mover for 2 objects.


(Thej) #1

Hi!

I was wondering if u could make 2 things follow eachother with the spline movers.

I got a tank, and want something behind it to follow.
so u get >->->->->-> where > = tank and - = Flatbed

i got the tank working, so now i have to add the flatbed, thats made out of brushes btw

This is a part of the script:

The_Flatbed

{
spawn
{
wait 200
setstate The_flatbed invisible
}

trigger run_stage1
{
	followspline globalaccum 0 spln0 50 wait length 32
}

trigger run_stage2
{
	followspline globalaccum 0 spln1 50 wait length 32
}

trigger run_stage3
{
	followspline globalaccum 0 spln2 50 wait length 32
}

and here a part of where i tried to let it follow the tank:

trigger run_0
{
	trigger self tracks_forward
	accum 1 bitset 2
	followspline 0 spln2 50 wait length 32
                            trigger The_flatbed run_stage2
	accum 1 bitreset 2
	trigger self run_continue
}

trigger run_1
{
	trigger self tracks_forward

	accum 1 bitset 2
	followspline 0 spln3 50 wait length 32
                            trigger The_flatbed run_stage3
	accum 1 bitreset 2

	trigger self run_continue
}

trigger run_2
{
	trigger self tracks_forward

	accum 1 bitset 2
	followspline 0 spln4 50 wait length 32
                            trigger The_flatbed run_stage4
	accum 1 bitreset 2
	trigger self run_continue
}

But now the tank starts and after a bit the flatbed follows behind, but i want to have it follow straight away.

Any help would be much appreciated!


(digibob) #2

swap those two lines around


(diaper eater) #3

cool a convoy type thing, lotsa neat ideas floating around here


(Thej) #4

YAY!

It works great!!

Thx djbob!


(TIHan) #5

if only i new how to get a tank to move :frowning: :angry: :banghead: :bash: :moo: