Page 1 of 1

fiveboy needs help with scripting please ! :) help me

Posted: Tue Mar 01, 2005 12:55 am
by FIVEBOY
I try to keep this short, the following script is used for making the truck move to one location to another then its stop in one location for the round +cool sounds in my map.

Code: Select all

truckride:
	
	wait 2
	$faketruck_model playsound m4l3_truck1
	$faketruck_model followpath $faketruck_entrypath
	$faketruck_model waitmove
	$faketruck_model loopsound m4l2_truckidle
	wait 2
	$faketruck_model stoploopsound
	
end
It works fine when the map is run (first round) but as soon as the map is restarted from RCon or the round is compete by a team wining the round the truck will just stay at the starting point and not move.

I did place a "Goto truckride" at the end which did allow the truck to move when the map is restarted by rcon. but the truck would disappear and restart during play.

Any help? Sorry i have spent some time looking at the script but i getting no where and have lost 2 hours sleep trying

thx 5

full script is here /forum/viewtopic.php?t=9977

stock

Posted: Tue Mar 01, 2005 11:56 am
by tltrude
You need to study the example of a stock objective script (obj_team). Try to make your "main:" thread the same. The stock scripts are found in Pak5 and 6.

Posted: Tue Mar 01, 2005 12:24 pm
by FIVEBOY
Tom so its being casued by incorrect scripting in my main: area of script and not the truckride thread, i spend ages playing around with the truckride thread and got no where lol

Posted: Tue Mar 01, 2005 6:38 pm
by FIVEBOY
no problem Master-Of-Fungus-Foo-D any idea to fix my problem??

Posted: Tue Mar 01, 2005 6:41 pm
by Master-Of-Fungus-Foo-D
OH AND PLZ DONT MAKE YOUR TITLE IN CAPS PLZ..... THX

Posted: Tue Mar 01, 2005 6:58 pm
by Rookie One.pl
Fiveboy, make sure the call to the thread is after level waittill spawn, e.g.

Code: Select all

level waittill spawn
thread truckride
This will solve the problem for 99.9%.

Posted: Wed Mar 02, 2005 12:35 pm
by FIVEBOY
Thx u Rookie One i tested it on my PC seems to be ok just need to test it on the clan server with the objective working :)

Many thx again :)