Home   Help Search Login Register  

Author Topic: getting guys to stand up & shoot  (Read 610 times)

0 Members and 2 Guests are viewing this topic.

thepandaman

  • Guest
getting guys to stand up & shoot
« on: 28 Dec 2002, 17:45:46 »
 ???
On my single player mission so far i've got a bunch of soldiers calmly sitting round a fire, then an officer runs up, shouts out that the base is under attack, and i want my guys to stand up, and go into combat made at that point, how do I do it?
(by the way i'm a real beginner with script)

toadeater

  • Guest
Re:getting guys to stand up & shoot
« Reply #1 on: 29 Dec 2002, 09:12:18 »
You won't need a script for this. Create a trigger covering the area with whatever condition you want to activate it, like "West Detected By East", then in On Activation put:

"_x setbehaviour combat" foreach units thislist; "_x setcombatmode red" foreach units thislist

Behaviour is one of: "CARELESS", "SAFE", "AWARE", "COMBAT", "STEALTH".

Mode may be one of: "BLUE" (Never fire), "GREEN" (Hold fire - defend only), "WHITE" (Hold fire, engage at will), "YELLOW" (Fire at will), "RED" (Fire at will, engage at will).


thepandaman

  • Guest
Re:getting guys to stand up & shoot
« Reply #2 on: 29 Dec 2002, 11:48:16 »
thanx!  ;)

Stupid Ugly Llama

  • Guest
Re:getting guys to stand up & shoot
« Reply #3 on: 29 Dec 2002, 20:38:35 »
but isn't there a way of making the guy run up a trigger himself??  how do i do that??

(I too am a real, real beginner)

toadeater

  • Guest
Re:getting guys to stand up & shoot
« Reply #4 on: 30 Dec 2002, 09:23:09 »
"Run up a trigger"? You mean have a specific unit activate it? Yeah, you can do that by naming the trigger then putting this in the trigger's condition line:

someguy in list triggername

Where "someguy" is the name you gave to the unit and "triggername" is the name you gave to the trigger.

Also set the trigger to activated by "anybody".

There are other ways to do it, but that's the way I've been doing it so far.

Stupid Ugly Llama

  • Guest
Re:getting guys to stand up & shoot
« Reply #5 on: 30 Dec 2002, 12:55:59 »
cheers

thepandaman

  • Guest
Re:getting guys to stand up & shoot
« Reply #6 on: 30 Dec 2002, 15:50:11 »
what exactly am i supposed to do......this doesn't make much sense??  Does the the trigger have to be realted to the group??

Stupid Ugly Llama

  • Guest
Re:getting guys to stand up & shoot
« Reply #7 on: 02 Jan 2003, 13:28:37 »
IS anyone gonna help or not????????

hashmus

  • Guest
Re:getting guys to stand up & shoot
« Reply #8 on: 02 Jan 2003, 19:23:33 »
what is it you want???
if you want ONE certain unit to activate the trigger you should:
-click the group-button (F2)
-draw a line between trigger and man...
then it should be the only guy to activate the trigger....