can't get tank to sit still


(Pukedukem) #1

I can get my Tank to drive on its path and blow up both objectives. But after it blows up the second gate it’s suppose to just sit there so people can use the gun. Instead the Tank drives in place, like it wants to drive to the next spline. Any idea on how I can get the thing to just sit there. I’m using parts of the goldrush script to make my script.

Thanks


(grizzlybear) #2

have u set the limit in the stuck_ckeck_finished
abort if less than <number of accum3 total increments>

if so add an
accum 3 inc 1 to the last run in the tank script
(just boost it along a bit :))

:wink:


(Pukedukem) #3

I have the “accum 3 inc 1” on both of the tanks objective stops, but it still drives in place after blowing up the second objective. heres what happens. The Tank stops, turns the turret and fires, then the turret goes back to its original position, and begins driving in place. Heres the final Tank RUN.

trigger run_61
{
trigger self tracks_forward

	accum 1 bitset 2
	followspline 0 spln63 50 wait length 32
	accum 1 bitreset 2

	trigger self script_lockout
	trigger self 		tracks_stop
	trigger tank_sound 	stop

	startanimation 45 10 15 nolerp norandom
	wait 666
	startanimation 0 1 15 nolerp norandom

	wait 900

	trigger tank_turret turn_2

	accum 3 inc 1
}

(Pukedukem) #4

Thanks Grizzly. It was the stuck_check finished. Spent all yesterday trying to fix that. Im still new to scripting.
Thanks again