Obj script question

Post your scripting questions / solutions here

Moderator: Moderators

bodybagger
Sergeant
Posts: 52
Joined: Mon Jan 06, 2003 5:27 pm

Post by bodybagger »

I'm still not getting it, I'm a noob with scripts!!!
here's my code so far:

Code: Select all

main:
	level.script="maps/obj/obj_lakeside_ai.scr"
	exec global/DMprecache.scr
	
	level waittill spawn

	level.dmrespawning = 1
	level.clockside = win
	level.dmroundlimit_allowoverwrite = 1
	level.dmroundlimit = 1
	level.alliesbots = 1
	level.axisbots = 1
	level.routelist[allied_route] = "bridge_ladder"::"bunker_ladder"::"church"::"house_sniper"
	level.routelist[axis_route] = "bunker_ladder_axis"
//	level.jvbot_notimehandler = 1

	$world farplane 5500
	$world farplane_color (0.3 0.31 0.35)
	$world farplane_cull 2

	level.jvbot_tasks_priority[defendbomb] = 0.2
	level.jvbot_tasks_priority[attackbomb] = 1.8
	level.jvbot_tasks_priority[sniper] = 1.0

	$allied_bomb thread global/jv_obj_dm.scr::bomb_thinker
	$axis_bomb thread global/jv_obj_dm.scr::bomb_thinker
//	$allied_bomb thread allied_win
//	$axis_bomb thread axis_win
	waitthread global/jv_bots/jv_mp_ai.scr::enable 0 0 1 0
	
//	level waittill roundstart
	while !(level.roundstart)
		wait 0.1
		
	thread fan1
	$allied_bomb thread allied_win
	$axis_bomb thread axis_win
end

fan1:
	$blade1 bind $fan1
	$blade2 bind $fan1
	$blade3 bind $fan1
	$blade4 bind $fan1
	$fan1 rotatez 50
end

allied_win local.bomb1
	while(local.bomb1.exploded != 1)
		wait .1
	iprintlnbold_noloc "The Allies have destroyed the dock!"
	
	teamwin allies
	
end

axis_win local.bomb2
	while(local.bomb2.exploded != 1)
		wait .1
	iprintlnbold_noloc "The Axis have destroyed the bridge"
	
	teamwin axis
	
end
Any help would be very much appreciated
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

$allied_bomb thread allied_win
$axis_bomb thread axis_win

Should be:

thread allied_win $allied_bomb
thread axis_win $axis_bomb
Image
Post Reply