Multiple objectives
Posted: Mon Sep 01, 2003 5:52 pm
Ive extended my map so that it now has a bomb objective and a steal documents objective. The map worked fine while i had only teh bomb objective in it, however now ive added the steal documents objective the map no longer ends once both objectives have been completed.
I am able to plantthe bomb, and have the objectives disappear when they are targeted, its just the map wont end.
Heres the bottom part of my script:
Ive tried changing this part of teh script "level.targets_destroyed ++
" by removing some of the + and even deleting the line, but that has no effect on ending the script.
Can someone please let me know ehat im doing wrong with the script, am i missing somthing or is there an error in the script. Its the axis that are meant to plant the bomb and steal the objectives if thats the error.
Thx in advance.
I am able to plantthe bomb, and have the objectives disappear when they are targeted, its just the map wont end.
Heres the bottom part of my script:
Code: Select all
//level waittill roundstart
$train_bomb thread global/obj_dm.scr::bomb_thinker
$desk_document_trigger thread document_check
thread allies_win_bomb
thread axis_win_timer
end
//*** --------------------------------------------
//*** "Allies Victory"
//*** --------------------------------------------
allies_win_timer:
level waittill axiswin
end
document_check:
while(1) {
self waittill trigger
if(parm.other.dmteam == axis) {
self.target hide
level.targets_destroyed ++
break
}
waitframe
}
endIve tried changing this part of teh script "level.targets_destroyed ++
" by removing some of the + and even deleting the line, but that has no effect on ending the script.
Can someone please let me know ehat im doing wrong with the script, am i missing somthing or is there an error in the script. Its the axis that are meant to plant the bomb and steal the objectives if thats the error.
Thx in advance.