hi all i have 1 workin paratrooper mod on our server but i was wonderin how do i add a second 1....i know how to set coords for trigger and how to set the oath but not how to add second plane lol this is the script im usin
thread nodes
thread plane_trig3
//********************( Para-trigger )
plane_trig3:
while (1)
{
local.smoke1 = spawn script_model model "fx/corona_red.tik" //a visible beacon for players to see the trigger - optional (can use without beacon over a spawnpoint)
local.smoke1 origin ( 474 -4747 -480 )
local.smoke1 scale 2
local.smoke1 notsolid
local.trig3 = spawn trigger_multiple
local.trig3.origin = ( 474 -4747 -480 )
local.trig3 setsize ( -50 -50 -2 ) ( 50 50 10 )
local.trig3 waittill trigger
local.trig3 setthread c47_paras
local.trig3 message "Drop Zone Approaching-Stand By Paratrooper!!" //paratroopers inflight message
local.trig3 delay 0
wait .1
local.trig3 remove
local.smoke1 remove
wait 30 //adjust for how often you want the para-plane to be available - make sure you give the first one time to get across the map
}
end
c47_paras:
thread radar_p //optional
local.para1 = parm.other
local.plane = spawn script_model
local.plane model "vehicles/c47fly.tik"
local.plane.origin = $pl20.origin
local.plane.angles = ( 0 0 0) //adjust for your chosen direction of flight
local.plane notsolid
local.para1 notsolid
local.plane scale 1
local.plane loopsound fly_snd
local.para_spot1 = spawn script_origin
local.para_spot1.origin = local.plane.origin + ( -215 0 50 ) //adjust for players positioning in plane
local.para_spot1 bind local.plane
local.para1 glue local.para_spot1
local.para1 physics_off //gives the plane a smoother flight
wait .5
local.plane flypath $plane_path
local.plane flypath $pl20 1000 200
local.para1 hide
thread gogogo local.para1
local.plane waitmove
local.plane stoploopsound
local.plane remove
end
gogogo local.para1:
wait 11 //adjust for when to release your paratrooper - 15 seconds into flight para is released from the plane .
local.para1 physics_on
local.para1 show
local.para1 unglue local.para_spot1
local.para1 gravity .2 //the players low gravity drop - beware how high you drop player from as they speed up as they drop
local.para1 solid
wait 5 //the time until player lands and gravity is returned to normal
local.para1 gravity 1
end
radar_p:
iprintlnbold "Allied Paratroopers Approaching !!!" //ingame message - optional
end
//************** C47 nodes
nodes:
spawn script_object "targetname" "pl20" "classname" "info_splinepath"
$pl20.origin = ( -7731 1722 1367 ) //plane spawns here
spawn script_object "targetname" "pl21" "classname" "info_splinepath"
$pl21.origin = ( -3957 1421 1367 ) //plane heads for this 2nd node
spawn script_object "targetname" "pl22" "classname" "info_splinepath"
$pl22.origin = ( 1233 1349 1367 ) //plane reaches here and is removed
$pl20.target = $pl21
$pl21.target = $pl22
//simply get the coords from 1 side of a map where you want the plane to start
//then 1 in the middle of the map
//then one at the other end of the map
//thus you have 3 coords in a straight line where your plane will fly
end
erll.
u could just copy everything u dud and chnage the thread names or you can get complicated and make the threads global. but u wud still need to setup the spline path in a new thread.
so i can change the thread name to thread plane_trig2
and in the spline path do i have to change the "pl20","pl21","pl22" or do i keep that
yeah if they have targetnames you would need to change them also.
ok i have changed the trigger name to thread plane_trig2
i have changed the target names to pl23 pl24 pl25
i have changed the spline path
but it doesnt work plus it takes off the 1st plane that did work.....can some1 change the script for me and mark it where the changes were made