main objective


([MOS]StiloMAN.pl) #1

I have destructable objective in my map and howto make this object main destination of allies ?

For example:
if allies blown up this object game will show up screen “Allies Win”
if axis defense this object by 30 min. game will show up screen “Axis Win”

:banana:


(grizzlybear) #2

follow this thread and put a command post in it too :wink:

http://www.wolfensteinx.com/surface/forums/showthread.php?s=0c755cc4e2d323edeeb442cb6ada78bf&threadid=920

the thread is about the commandpost script because it got mixed up in the rest of the script which consisted of func_explosive linked to a toi that triggered the end when blown up

the full script is at the end along with an explanation of the trigger path in the script

or search func_explosive :wink:


(DAbell) #3

If you have created the dynamitable objective already you just need to add a few extra line into your script. Here is the script for the allieds to win after blowing up something.

game_manager
{
spawn
{
}

trigger objective_counter //Counts Allied objectives completed
{
accum 1 inc 1
trigger game_manager checkgame
}

trigger checkgame
{
accum 1 abort_if_not_equal 1
wm_setwinner 0
wait 4000

wm_endround
}

}

yourwall
{
spawn
{
wait 200
constructible_class 3
}
death
{
wm_announce “Allies have blown up your Wall”
trigger game_manager objective_counter
}
}

If you haven’t created your dynamite objective yet follow a tutorial this one is good i have always used this and it works just add my bit of script and it should make it a game winner once its blown.

http://etmapping.andityler.com/dynamiteobject.php


(josuhaz) #4

hmm it didnt work with me:( is this script complete or do i have to add the script from the tutorial too?