fiveboy needs help with scripting please ! :) help me

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
FIVEBOY
Colour Sergeant
Posts: 94
Joined: Thu Feb 27, 2003 3:09 pm
Location: England
Contact:

fiveboy needs help with scripting please ! :) help me

Post 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
Last edited by FIVEBOY on Tue Mar 01, 2005 6:38 pm, edited 1 time in total.
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

stock

Post 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.
Tom Trude,

Image
FIVEBOY
Colour Sergeant
Posts: 94
Joined: Thu Feb 27, 2003 3:09 pm
Location: England
Contact:

Post 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
FIVEBOY
Colour Sergeant
Posts: 94
Joined: Thu Feb 27, 2003 3:09 pm
Location: England
Contact:

Post by FIVEBOY »

no problem Master-Of-Fungus-Foo-D any idea to fix my problem??
Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544
Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States

Post by Master-Of-Fungus-Foo-D »

OH AND PLZ DONT MAKE YOUR TITLE IN CAPS PLZ..... THX
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post 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%.
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
FIVEBOY
Colour Sergeant
Posts: 94
Joined: Thu Feb 27, 2003 3:09 pm
Location: England
Contact:

Post 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 :)
Post Reply