Page 1 of 1

Objective Q's

Posted: Fri Feb 27, 2004 8:05 pm
by n0013
Q1:How do you make it so both allies win bomb and axis win bomb?
Q2:How do you make an optional bomb(one that is not required to explode to complete the level)?

Posted: Fri Feb 27, 2004 10:51 pm
by M&M
did u try the tutorials in the tuts section,i think they can help with one of those questions at least,but if u already tried them then i guess i am clueless.i think what u want 2 do is possible but i have never done an obj map 2 prove it
i only have one question :?: how can both teams win by setting a bomb?do they both have its own place that has 2 be blown (but y?)and the faster in blowing it wins,or is it one place which must be destroyed by 2 teams (but y again?)?i mean im used 2 the idea that some1 attacks (blows the target) and the other defends (protects the target)

script

Posted: Sat Feb 28, 2004 6:00 am
by tltrude
You don't have to use the obj_dm.scr script for an objective game. If threads in your script ends with "teamwin allies" or "teamwin axis" the game will end when one of those lines are read.

Also, your bomb triggers can use "setthread", which will make a thread in your script run. Doing that, you can script the bomb replacement, ticking, explosions, and even the teamwin.

So, basically, what you need is to script what you want to happen. If you ask nice, and give all the targetnames in the scripting forum, someone may do it for you. But, please try on your own first--they like it when you try.

Posted: Sat Feb 28, 2004 10:07 am
by bdbodger
The global/obj_dm.scr does the effects etc it sets the exploded key of the bomb to 1 and the level script uses that for the win . If you only want a bomb that does not cause a win just don't put that in the win thread . The global/obj_dm.scr can also set off a explosion that uses the global/exploder.scr . I think maybe you can use it that way as well .