2 teles in my map wont work
Posted: Sun May 07, 2006 8:07 am
can someoen scan this through and help me whats wrong?
thnx anyone
Code: Select all
// DESTROYED VILLAGE
// ARCHITECTURE: NED
// SCRIPTING: NED
main:
// set scoreboard messages
setcvar "g_obj_alliedtext1" "Destroyed Village"
setcvar "g_obj_alliedtext2" ""
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" ""
setcvar "g_obj_axistext2" ""
setcvar "g_obj_axistext3" ""
setcvar "g_scoreboardpic" "mohdm2"
// call additional stuff for playing this map round based is needed
if(level.roundbased)
thread roundbasedthread
level waittill prespawn
//*** Precache Dm Stuff
exec global/DMprecache.scr
exec global/door_locked.scr::lock
level.script = maps/dm/mohdm2.scr
exec global/ambient.scr mohdm2
level waittill spawn
local.fix1 = spawn script_model model models/vehicles/european_car_silver.tik origin ( -3234.594 1877.879 173.791 ) angle ( 93.367 )
local.fix1 = spawn script_model model models/static/vehicle_shermantank_dead.tik origin ( 638.450 1037.395 -24.408 ) angle ( 97.839 )
local.fix1 = spawn script_model model models/static/vehicle_shermantank_dead.tik origin ( -221.654 1108.809 32.786 ) angle ( 186.801 )
local.fix1 = spawn script_model model models/static/vehicle_shermantank_dead.tik origin ( -219.529 -1498.722 -27.744 ) angle ( 183.274 )
local.fix1 = spawn script_model model models/static/vehicle_shermantank_dead.tik origin ( -2300.448 -515.817 535.131 ) angle ( 180.439 )
local.fix1 = spawn script_model model models/static/bodies_tarp.tik origin ( -1694.271 -443.881 -71.631 ) angle ( 95.092 )
local.fix1 = spawn script_model model models/static/bunkerfan.tik origin ( -1692.619 -203.868 -47.904 ) angle ( 177.984 )
main:
thread trigger_maker
thread trigger_maker2
thread trigger_maker3
trigger_maker local.location local.dest:
local.marker = spawn script_model
local.marker model "static/corona_orange.tik"
local.marker.origin = ( -2001 -1820 0 )
local.trig = spawn trigger_multiple
local.trig.origin = ( -2001 -1820 0 )
local.trig setsize ( -20 -20 -20 ) ( 20 20 20 )
thread teleport local.trig local.dest
end
teleport local.trig local.dest:
local.trig waittill trigger
local.player = parm.other
local.player tele ( -2215 -161 466 )
thread teleport local.trig local.dest
end
//2
trigger_maker2 local.location local.dest2:
local.marker = spawn script_model
local.marker model "static/corona_orange.tik"
local.marker.origin = ( 247 -1460 0 )
local.trig = spawn trigger_multiple
local.trig.origin = ( 247 -1460 0 )
local.trig setsize ( -20 -20 -20 ) ( 20 20 20 )
thread teleport2 local.trig local.dest2
end
teleport2 local.trig local.dest2:
local.trig waittill trigger
local.player = parm.other
local.player tele ( 296 -1072 525 )
thread teleport2 local.trig local.dest2
end
//3
trigger_maker3 local.location local.dest3:
local.marker = spawn script_model
local.marker model "static/corona_orange.tik"
local.marker.origin = ( 2544 -3794 210 )
local.trig = spawn trigger_multiple
local.trig.origin = ( 2544 -3794 210 )
local.trig setsize ( -20 -20 -20 ) ( 20 20 20 )
thread teleport3 local.trig local.dest3
end
teleport3 local.trig local.dest3:
local.trig waittill trigger
local.player = parm.other
local.player tele ( 2282 -3749 -10 )
thread teleport3 local.trig local.dest3
end
//-----------------------------------------------------------------------------
roundbasedthread:
// Can specify different scoreboard messages for round based games here.
level waitTill prespawn
level waittill spawn
// set the parameters for this round based match
level.dmrespawning = 0 // 1 or 0
level.dmroundlimit = 15 // round time limit in minutes
level.clockside = kills // set to axis, allies, kills, or draw
level waittill roundstart
end