- that b****y lorry again


(mrfin) #1

Hello again mapping types

  • affraid the saga of my truck is still ongoing.

The thing goes from its starting position to its end position and sits there - which is great!
It can even be blown up and fixed again
trouble is, if it gets damaged at its final stopping point and an engineer fixes it the game crashes

I need to make the truck inactive when it reaches it’s destination

any ideas/pointers much appreciated

:cool:


(Shaderman) #2

kill <targetname> (Kill target entity)

If your targetname is truck for example, do a kill truck when it reached the end point.

[EDIT]

Some minutes later… Killing the target should result in a damaged truck, showing the corresponding models afaik. Sorry but I’m too tired now to give you a solution for the undamaged state. I think you should post your script if you need it undamaged at the end.


(mrfin) #3

thanks shaderman

I put the kill truck line in the script on the last spline point:

	trigger run_98
{
	accum 1 bitset 2
	accum 1 bitreset 2
	accum 3 set 98
	
	trigger truck stopcheck 
		
	trigger truck 		wheels_stop 
	kill truck

}

still crashes mind - is this the right position for it?


(Shaderman) #4

trigger run_98
{
accum 1 bitset 2
accum 1 bitreset 2
accum 3 set 98

trigger truck stopcheck

trigger truck wheels_stop
kill truck

}

This position seems to be ok but I wonder if you still have to set those accums and do a stopcheck. Anyway you should find the error causing the crash in your script before doing anything else. Post your script in a

 block - it's easier to help you then.

(mrfin) #5

ok…thanks…ill post the code in a new thread


(G0-Gerbil) #6

Is there a corresponding repair to the kill?
Too lazy to look right now since I just stumbled across this by accident :slight_smile: