what exactly does wm_set_main_objective do?


(MadMaximus) #1

wm_set_main_objective <x> <x>
Ive read tut’s and checked a few places, but no one explains exactly what this scripting command does… can anyone offer an explanation?

I understand how the wm_objective_status updates the limbo screen objectives with the cross or checkmark… but what does set_main_objective do?


(Loffy) #2

Yes, and sometimes the command is mentioned twice. See the script from GoldRush for example:

// Current main objectives for each team (0=Axis, 1=Allies)
wm_set_main_objective 1 0
wm_set_main_objective 1 1

wm_objective_status 1 0 0
wm_objective_status 1 1 0
wm_objective_status 2 0 0
wm_objective_status 2 1 0
wm_objective_status 3 0 0
wm_objective_status 3 1 0
wm_objective_status 4 0 0
wm_objective_status 4 1 0
wm_objective_status 5 0 0
wm_objective_status 5 1 0
wm_objective_status 6 0 0
wm_objective_status 6 1 0
wm_objective_status 7 0 0
wm_objective_status 7 1 0

wm_set_main_objective 1 0
wm_set_main_objective 1 1

Why mention it twice like that?
// Loffy


(MadMaximus) #3

yeah, from what loffy posted there… ive seen that and it confuses me also…
unless it’s an oversight that was never edited out…


(bloodwire) #4

Doesn’t that above mean that objective No 1 is primary objective for both axis and allies?


(MadMaximus) #5

yes, but it also get’s changed in the script as an objective is done, but what i mean is, why is it needed??? what does it do?

i thought that maybe it made the objective description pop up in the limbo window as the #1 objective to do at that time, even though you could scroll through the rest, but no matter what, the objectives start at 1 and u scroll from there… i still have no idea what it is intended for. If it was meant to reference an entitys key/target as in objflags 1 and make that pulse, then it would be a great thing… to direct on the limbo map what is needed to do at any given time, but obviously it’s not intended to do that. the objflags are meant to, but they don’t seem to work ( but i’ll still add them to my toi’s ), now as for exactly what wm_set_main_objective does… i’m clueless…
“set’s the current main objective” but in what way? and how does it affect the script or map? :banghead:


(gerby) #6

The line would be in twice, once for Axis and once for Allies.
Having said that, I think this is something like objflags, Ie something that was either planned to be in, or was taken out.
I just don´t think it works, so really I´d not worry too much about it.
Certainly I´ve never bothered with it and nothing has gone wrong!
touches wood


(MadMaximus) #7

yeah… i think it was meant as an 'you did this, it’s done… now concentrate on this other thing…" sorta thingy…

ive added it to all my primary’s, only 3 of them… i set it 1st to a main gate, then to the 2nd objective and from there the 3rd… if the third get’s done 1st, then it still set’s it back to the 2nd… i dunno why i added it if it has no noticable function… but it doesnt hurt i guess…

ive aligned all my objflags the same way also… if that was the intent of it, they still don’t work proper… icons flash in wierd places still… but oh well…


(bani) #8

from a quick check of the code, SD apparently planned to do something with it but ended up taking it out.

so wm_set_main_objective doesnt do anything anymore.