Problems with triggers
Posted: Tue Dec 07, 2004 7:30 pm
Hi again !
I have a few problems with my map, I added a minefield, random explodes and damaging flames to my map. Now when I am trying to load the map it`s sending me back to the briefing room. Console says : Developer, your script is broken. I just can`t figure out what is wrong ?
Here is my script:
// talvisota
// ARCHITECTURE: Carnivora
// SCRIPTING: Carnivora
main:
// set scoreboard messages
setcvar "g_obj_alliedtext1" "Talvisota"
setcvar "g_obj_alliedtext2" "By Carnivora"
setcvar "g_obj_alliedtext3" "(TeurasCompany)"
setcvar "g_obj_axistext1" "Talvisota"
setcvar "g_obj_axistext2" "By Carnivora"
setcvar "g_obj_axistext3" "(TeurasCompany)"
setcvar "g_scoreboardpic" "talvisota"
//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/minefield.scr
level.script = maps/dm/talvisota.scr
//exec global/ambient.scr mohdm2
//$world farplane 5000
//$world farplane_color (.333 .333 .329)
level waittill spawn
//hurt script by blue60007
my_hurt_trigger:
$my_hurt_trigger volumedamage 100 //hurts the player
end
thread random_explode1
end
random explode_1:
wait (randomfloat 13+23)
$random_explode anim start
radiusdamage $random_explode 256 384
goto random_explode1
end
//-----------------------------------------------------------------------------
roundbasedthread:
// TeurasCompany
level waittill prespawn
level waittill spawn
// set the parameters for this round based match
level.dmrespawning = 0 // 1 or 0
level.dmroundlimit = 5 // round time limit in minutes
level.clockside = kills // set to axis, allies, kills, or draw
level waittill roundstart
end
I have a few problems with my map, I added a minefield, random explodes and damaging flames to my map. Now when I am trying to load the map it`s sending me back to the briefing room. Console says : Developer, your script is broken. I just can`t figure out what is wrong ?
Here is my script:
// talvisota
// ARCHITECTURE: Carnivora
// SCRIPTING: Carnivora
main:
// set scoreboard messages
setcvar "g_obj_alliedtext1" "Talvisota"
setcvar "g_obj_alliedtext2" "By Carnivora"
setcvar "g_obj_alliedtext3" "(TeurasCompany)"
setcvar "g_obj_axistext1" "Talvisota"
setcvar "g_obj_axistext2" "By Carnivora"
setcvar "g_obj_axistext3" "(TeurasCompany)"
setcvar "g_scoreboardpic" "talvisota"
//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/minefield.scr
level.script = maps/dm/talvisota.scr
//exec global/ambient.scr mohdm2
//$world farplane 5000
//$world farplane_color (.333 .333 .329)
level waittill spawn
//hurt script by blue60007
my_hurt_trigger:
$my_hurt_trigger volumedamage 100 //hurts the player
end
thread random_explode1
end
random explode_1:
wait (randomfloat 13+23)
$random_explode anim start
radiusdamage $random_explode 256 384
goto random_explode1
end
//-----------------------------------------------------------------------------
roundbasedthread:
// TeurasCompany
level waittill prespawn
level waittill spawn
// set the parameters for this round based match
level.dmrespawning = 0 // 1 or 0
level.dmroundlimit = 5 // round time limit in minutes
level.clockside = kills // set to axis, allies, kills, or draw
level waittill roundstart
end