Home   Help Search Login Register  

Author Topic: Calling Sides - East,West, Res, Civ  (Read 768 times)

0 Members and 2 Guests are viewing this topic.

Kilo11

  • Guest
Calling Sides - East,West, Res, Civ
« on: 17 Nov 2004, 01:26:41 »
Hello,

Is there anyway to use ONE command to call an ENTIRE side?


EX:  East setbehaviour "AWARE"

That is what I would like to do, but I know that doesnt work.  Any ideas, sugguestions, tips, or andwers are greatly apprecaited.  Thanks in advance!

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:Calling Sides - East,West, Res, Civ
« Reply #1 on: 17 Nov 2004, 01:38:41 »
create a trigger that covers the entire map, activated by east present, and in the activation line put: east = thislist;"_x setbehaviour "aware"" foreach units east
condition: this and changebehaviour
that way it will wait for the variable changebehaviour to be true, which you can do through another trigger which will actually cause the change

Trigger2:
condition: what you want
activation: changebehaviour = true
« Last Edit: 17 Nov 2004, 01:51:45 by Triggerhappy »

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:Calling Sides - East,West, Res, Civ
« Reply #2 on: 17 Nov 2004, 01:48:56 »
hmm.. upon testing this in the editor i think you will need to use scripting, the trigger won't except a couple things
for the trigger just do this:
activation:[thislist] exec "changebehaviour.sqs"

Code: [Select]
_Units = _this
"_x setbehaviour "aware"" foreach units _units
exit

just change the behaviour in the script to what you want, and as i said, the trigger will affect who has their behaviour changed, whoever activates the trigger covering the whole map
« Last Edit: 17 Nov 2004, 01:52:40 by Triggerhappy »

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:Calling Sides - East,West, Res, Civ
« Reply #3 on: 17 Nov 2004, 02:09:55 »
Triggerhappy's method will almost work in a trigger, except for a few errors. The main problem is right here:

"_x setbehaviour "aware"" foreach

The second bold quote "closes" off the first one, which makes an error. Remember that you can use braces as quotes: {

{_x setbehaviour "aware"} foreach....

It's also not a good idea to use "east" as a variable name, because "east" is also a scripting command, and that is never a good idea to do. But you don't need the variable at all, just put this in a trigger, covering the whole mission area, activated by "east present" (and synchronized with something if you don't want it to happen at the beginning of the mission):

{_x setbehaviour "aware"} foreach list this
or
{_x setbehaviour "aware"} foreach thislist
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

Kilo11

  • Guest
Re:Calling Sides - East,West, Res, Civ
« Reply #4 on: 17 Nov 2004, 22:57:02 »
Thanks, it worked.
« Last Edit: 17 Nov 2004, 23:00:24 by Kilo11 »