Page 1 of 1

autodispatching units

Posted: Fri Feb 11, 2011 9:29 pm
by carlinho
anybody knows how to autodispatch units?
Big Brother told me it could be done, so in the dday map, the computer assigned units to each team instead of manually one doing so....
is that possible to do it through script? any help appreciated

thanks!!!

Re: autodispatching units

Posted: Sat Feb 12, 2011 12:11 am
by Graydon
Yea dude it's in the control script. I forget what it's called exactly but the functions should be pretty self explanatory when you locate them. Look for auto-detach or something along those lines. It'll give you a subj list to pick monsters in, and then a player index of 0 to 15 for distributing units to player X.

Edit: Naturally you'll need a TUNI for each variation of auto-distribution to gauge how many units are given to how many players in each game;

TUNI.Coop 2 player? --> CTRL.dispatch for 2 players

TUNI.Coop 3 player? -->CTRL.dispatch for 3 players

ETC.

Re: autodispatching units

Posted: Sat Feb 12, 2011 1:38 am
by carlinho
nice!
I'll give it a try!

thanks Gray!