Page 1 of 1

PLane Flyby

Posted: Tue May 11, 2004 9:23 pm
by Lone_Rebel
Hey I wanna have bombers fly over my map periodically. I have it so that the bomber flies over when youre in a certain area, but I want to know how to get it to fly over automatically and like every 30-60 seconds.

post

Posted: Tue May 11, 2004 11:42 pm
by tltrude
Post your script.

Posted: Wed May 12, 2004 2:30 am
by Lone_Rebel
umm there isnt one, I follow Nemesis's Plane tutorial and it doesnt call for a script http://users.1st.net/kimberly/Tutorial/plane.htm

Posted: Wed May 12, 2004 4:48 pm
by blue60007
There is a script there. You'll need one, especially if you want to run it every so often.

Posted: Thu May 13, 2004 12:17 am
by Lone_Rebel
hmm the real question is what is the command to have the plane fly to a certain waypoint isnt it? then you just set it to rethread and put a wait # at the beginning of the thread.

Posted: Mon May 31, 2004 7:19 pm
by strafer
here is an example of a plane bombing that i made for the crossroads. i didn't finish it yet, but this should help you.

plane:

// Plane 1
spawn script_object "targetname" "pl1" "classname" "info_splinepath"
$pl1.origin = ( -7 -161 548)
$pl1.angles = ( 0 90 0 )
$pl1.model = "vehicles/P47fly.tik"

spawn script_object "targetname" "pl2" "classname" "info_splinepath"
$pl2.origin = ( -1 838 467)
$pl2.angles = ( 0 90 0 )
$pl2.model = "vehicles/P47fly.tik"

spawn script_object "targetname" "pl3" "classname" "info_splinepath"
$pl3.origin = ( 2 2189 457)
$pl3.angles = ( 0 90 0 )
$pl3.model = "vehicles/P47fly.tik"

spawn script_object "targetname" "pl6" "classname" "info_splinepath"
$pl6.origin = ( 2 3189 457)
$pl6.angles = ( 0 90 0 )
$pl6.model = "vehicles/P47fly.tik"

spawn script_object "targetname" "pl4" "classname" "info_splinepath"
$pl4.origin = ( -34 4275 487)
$pl4.angles = ( 0 90 0 )
$pl4.model = "vehicles/P47fly.tik"

spawn script_object "targetname" "pl5" "classname" "info_splinepath"
$pl5.origin = (125 7554 1014)
$pl5.angles = ( 0 90 0 )
$pl5.model = "vehicles/P47fly.tik"

spawn script_object "targetname" "bomberpath" "classname" "info_splinepath" "target" $pl1 "origin" "5 -4718 1357" "angles" "20 87 0" "model" "vehicles/P47fly.tik" "$mdl" "vehicles/P47fly.tik" "#set" "1" "speed" ".4"

// Speaker
spawn script_object "targetname" "bomberspeaker" "classname" "sound_speaker" "origin" $pl2.origin "#set" "1"
$bomberspeaker[3].sound = "stuka_by2"

// Plane 1 Bomb 1
spawn script_origin "targetname" "bo111" "classname" "info_splinepath"
$bo111.origin = ( -16 -252 520)
$bo111.model = "ammo/us_bomb.tik"

spawn script_origin "targetname" "bo112" "classname" "info_splinepath"
$bo112.origin = ( -7 -14 284)
$bo112.model = "ammo/us_bomb.tik"

spawn script_object "targetname" "bomber" "classname" "info_splinepath" "origin" $pl1.origin "#set" "1" "model" "ammo/us_bomb.tik" "mdl" "ammo/us_bomb.tik" "target" $bo111

$bo111.target = $bo112

// Plane 1 Bomb 2
spawn script_origin "targetname" "bo222" "classname" "info_splinepath"
$bo222.origin = ( -17 1155 409)
$bo222.model = "ammo/us_bomb.tik"

spawn script_origin "targetname" "bo223" "classname" "info_splinepath"
$bo223.origin = ( 17 1011 240)
$bo223.model = "ammo/us_bomb.tik"

spawn script_object "targetname" "bomber" "classname" "info_splinepath" "origin" $pl2.origin "#set" "1" "model" "ammo/us_bomb.tik" "mdl" "ammo/us_bomb.tik" "target" $bo222

$bo222.target = $bo223

// Plane 1 Bomb 5
spawn script_origin "targetname" "bo555" "classname" "info_splinepath"
$bo555.origin = ( -25 2282 424)
$bo555.model = "ammo/us_bomb.tik"

spawn script_origin "targetname" "bo556" "classname" "info_splinepath"
$bo556.origin = ( -33 2495 235)
$bo556.model = "ammo/us_bomb.tik"

spawn script_object "targetname" "bomber" "classname" "info_splinepath" "origin" $pl3.origin "#set" "1" "model" "ammo/us_bomb.tik" "mdl" "ammo/us_bomb.tik" "target" $bo555

$bo555.target = $bo556


// Plane 1 Bomb 6
spawn script_origin "targetname" "bo666" "classname" "info_splinepath"
$bo666.origin = ( -14 4419 409)
$bo666.model = "ammo/us_bomb.tik"

spawn script_origin "targetname" "bo667" "classname" "info_splinepath"
$bo667.origin = ( -19 4709 221)
$bo667.model = "ammo/us_bomb.tik"

spawn script_object "targetname" "bomber" "classname" "info_splinepath" "origin" $pl4.origin "#set" "1" "model" "ammo/us_bomb.tik" "mdl" "ammo/us_bomb.tik" "target" $bo666

$bo666.target = $bo667

// connect up plane path
$pl1.target = $pl2
$pl2.target = $pl3
$pl3.target = $pl6
$pl6.target = $pl4
$pl4.target = $pl5

exec global/bomber.scr
wait 10

ord1agn:
local.planewait = 64
wait local.planewait
iprintlnbold "THE PLANE WILL BOMB IN 10 SECONDS"
wait 10
iprintln "**************************"
iprintln "THE PLANE IS BOMBING"
iprintln "THE PLANE IS BOMBING"
iprintln "THE PLANE IS BOMBING"
iprintln "**************************"
thread global/bomber.scr::bomb 1
goto ord1agn

Posted: Tue Jun 01, 2004 1:47 am
by bdbodger
I use a different syntax for the nodes

spawn info_splinepath "targetname" "pl1"

I don't know if spawning a script_object will have the same effect as just spawning a info_splinepath . I mean with a info_splinepath you can set the angles of the plane at each of the nodes and the plane will use the angles .

I am not saying your script does not work just wondering if it works the way you intended .