help with tank


(azerot94) #1

i make the tut of 2bit but my tank stops in the middle of the path (spln_7) i wanna spln to be 23! pls help. i wanna the tank to loop (his finish of the tour to be on start)

here is my script


(isbowhten) #2

in every “run” routine there is the line " … bitreset …" … that is missing in run 7…
if the tank followed spline 23 set the accum 0 to -1 ( then the inc 1 command in "continue " increases it to 0 => it starts again.


(azerot94) #3

i fix that but it not works? can someone help me…


(isbowhten) #4

strange… it should work ( well i did not understand your script cause i make my own truck script if necessary)
hm… i would delete run 7 and paste run 6 in the script again and change the values to run 7 etc.
is MUST work if it works before, too!
perhaps a typing mistake Oo


(Diego) #5

Can’t help you with that one. I could never figure out the Goldrush style of tank scripting. Chrucker’s tank script was a lot easier for me to understand.


(murka) #6
	trigger stuck_check_finished
	{
	//	The check should be the final spln nbr + 1
		accum 3 abort_if_less_than [B]8[/B]
		accum 1 bitset 3
	}

this is why it doesn’t move further…


(pazur) #7

Hi azerot94,

In the script by 2bit there is this part:

trigger stuck_check_finished
{
//	The check should be the final spln nbr + 1
	accum 3 abort_if_less_than 129
	accum 1 bitset 3
}

See that 129? That’s my last spline point… So if your needs to be 23 just change it there.


(murka) #8

Beat ya to it :slight_smile:


(pazur) #9

Oh… just the same reply as murka10 :wink: (I should start reading all posts of a thread before posting :D)


(pazur) #10

Ah… nearly same time 10:17 10:18 … hehe


(isbowhten) #11

omg… i didn’T see that trigger :frowning:
i could have been tested much easier if tank reached the last spline or not…


(azerot94) #12

thank u guys