Page 1 of 1

2 teles in my map wont work

Posted: Sun May 07, 2006 8:07 am
by snipester
can someoen scan this through and help me whats wrong?


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
thnx anyone

Posted: Sun May 07, 2006 8:49 am
by Green Beret
If this dont help read this topic
/forum/viewtopic.php?t=10537&highlight=teleport

Code: Select all

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: take this out
                       from       to
thread trigger_maker ( x x x ) ( x x x ) //(from) (to) 1
thread trigger_maker2 ( x x x ) ( x x x ) //(from) (to) 2
thread trigger_maker3 ( x x x ) ( x x x ) //(from) (to) 3

end//add this

trigger_maker local.location local.dest:

local.marker = spawn script_model
local.marker model "static/corona_orange.tik"
local.marker.origin = (local.location) //( -2001 -1820 0 )

local.trig = spawn trigger_multiple
local.trig.origin = (local.location) 
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 (local.dest)
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 = (local.location)

local.trig = spawn trigger_multiple
local.trig.origin = (local.location)
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 local.dest2
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 = (local.location)

local.trig = spawn trigger_multiple
local.trig.origin = (local.location)
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 local.dest3
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

Posted: Sun May 07, 2006 12:07 pm
by snipester
ok this is what i have now but only one of them works

Code: Select all

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 ( -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/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 ) 


teleports: 

thread trigger_maker ( -3905 -2719 64 ) ( -2237 -458 588 ) //(from) (to) 1 
thread trigger_maker2 ( -2488 -474 480 ) ( -690 -628 861 ) //(from) (to) 2 
thread trigger_maker3 ( -1107 1605 216 ) ( -2662 1620 636 ) //(from) (to) 3  

end 

trigger_maker local.location local.dest: 

local.marker = spawn script_model 
local.marker model "static/corona_orange.tik" 
local.marker.origin = (local.location) 

local.trig = spawn trigger_multiple 
local.trig.origin = (local.location) 
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 (local.dest) 
thread teleport local.trig local.dest 


trigger_maker local.location local.dest2: 

local.marker = spawn script_model 
local.marker model "static/corona_orange.tik" 
local.marker.origin = (local.location) 

local.trig = spawn trigger_multiple 
local.trig.origin = (local.location) 
local.trig setsize ( -20 -20 -20 ) ( 20 20 20 ) 
thread teleport local.trig local.dest 

end 

teleport local.trig local.dest2: 

local.trig waittill trigger 
local.player = parm.other 
local.player tele (local.dest) 
thread teleport local.trig local.dest2 

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

Posted: Mon May 08, 2006 3:45 am
by Green Beret
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 ( -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/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 )


teleports:

thread trigger_maker ( -3905 -2719 64 ) ( -2237 -458 588 ) //(from) (to) 1
thread trigger_maker2 ( -2488 -474 480 ) ( -690 -628 861 ) //(from) (to) 2
thread trigger_maker3 ( -1107 1605 216 ) ( -2662 1620 636 ) //(from) (to) 3

end


trigger_maker local.location local.dest:
local.marker = spawn script_model
local.marker model "static/corona_orange.tik"
local.marker.origin = (local.location)

local.trig = spawn trigger_multiple
local.trig.origin = (local.location)
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 (local.dest)
thread teleport local.trig local.dest

end//add this

trigger_maker2 local.location local.dest:

local.marker = spawn script_model
local.marker model "static/corona_orange.tik"
local.marker.origin = (local.location)

local.trig = spawn trigger_multiple
local.trig.origin = (local.location)
local.trig setsize ( -20 -20 -20 ) ( 20 20 20 )
thread teleport local.trig local.dest2

end

teleport local.trig local.dest2:

local.trig waittill trigger
local.player = parm.other
local.player tele (local.dest)
thread teleport local.trig local.dest2

end

Posted: Mon May 08, 2006 9:11 am
by bdbodger
um Green Beret did you happen to see snipester's current rank

Posted: Tue May 09, 2006 4:29 am
by Green Beret
Oops nope...im lost :shock: ..he must of been out of hand
shame shame :oops:

Posted: Tue May 09, 2006 10:15 am
by lizardkid
let me be the first to rejoice.

Posted: Tue May 09, 2006 12:35 pm
by bdbodger
Well I don't know the whole story but I trust our admins judgement they don't very often impose any bans here and are very tolerent .

Posted: Tue May 09, 2006 2:15 pm
by lizardkid
if you browse through his post history you'll see he just doesnt know how to act on a forum, or at all for that matter. he seemed very young and hijacked and ressurected a lot of topics, and managed to contribute nothing.

much... like i'm doing now. :o