Home   Help Search Login Register  

Author Topic: Affect whole side  (Read 3170 times)

0 Members and 1 Guest are viewing this topic.

Offline Pr0ph3t

  • Members
  • *
Affect whole side
« on: 26 Mar 2005, 05:35:26 »
Hai everybady!  8)

I want a trigger that will setcombatmode "red" for every western unit. How do I do this?

Offline Peter_Bullet

  • Members
  • *
  • "The evil that men do lives on and on"
Re:Affect whole side
« Reply #1 on: 26 Mar 2005, 05:42:02 »
Make a trigger wich covers the whole mission area, and be sure to put activation "West". Then give a name for the trigger ex. xxx. You can set the condition to empty. When you want the side to be affected, write somewhere: {_x setCombatMode "Red"} forEach list xxx

Offline Pr0ph3t

  • Members
  • *
Re:Affect whole side
« Reply #2 on: 26 Mar 2005, 16:44:34 »
Nice! thanks man

Offline supershooter

  • Members
  • *
  • 2+2=4
Re:Affect whole side
« Reply #3 on: 26 Mar 2005, 17:08:23 »
lol whats red?

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Affect whole side
« Reply #4 on: 26 Mar 2005, 19:36:12 »
Plenty of reviewed ArmA missions for you to play

Offline Pr0ph3t

  • Members
  • *
Re:Affect whole side
« Reply #5 on: 27 Mar 2005, 03:50:50 »
OHHHH IN YOUR FACE!!! hihi

Offline Pr0ph3t

  • Members
  • *
Re:Affect whole side
« Reply #6 on: 27 Mar 2005, 03:53:29 »
wait I don't get it what's xxx?

Offline Peter_Bullet

  • Members
  • *
  • "The evil that men do lives on and on"
Re:Affect whole side
« Reply #7 on: 27 Mar 2005, 06:59:35 »
ex. xxx = for example xxx. It's just the name you give to the trigger. The name can be anything!

(some letters aren't allowed)

Offline Pr0ph3t

  • Members
  • *
Re:Affect whole side
« Reply #8 on: 27 Mar 2005, 16:17:57 »
Ok.. Just wasn't sure if it was the group name or trigger name. Thanks buds. I'm gonna test this in a couple of hours.. I'll post if it worked.

Offline Pr0ph3t

  • Members
  • *
Re:Affect whole side
« Reply #9 on: 27 Mar 2005, 19:05:57 »
Okay just a couple more problems and I think this thread is solved..

First of all, for anyone else using my lowly version, the only way the above command will work in the trigger activation field is by using "" not {}

ex: "_x setcombatmode red" foreach list xxx

now the problem is, you can't put red under quotations ("red") because you'll get a syntax error. So I need to find another command that can alter a unit's behaviour without quotations.

I tried doing "_x setdammage 1" foreach list xx and everyone western died. So it works. Now the only thing is to find a command without quotations.. Anyone got a clue or a work around?

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Affect whole side
« Reply #10 on: 27 Mar 2005, 19:13:03 »
Try double quotes:

""Red""

In other words;

"_x setcombatmode ""red""" foreach list xxx


Planck
« Last Edit: 27 Mar 2005, 19:14:28 by Planck »
I know a little about a lot, and a lot about a little.

Offline Pr0ph3t

  • Members
  • *
Re:Affect whole side
« Reply #11 on: 27 Mar 2005, 19:46:54 »
Nope double quotes don't work either :(

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Affect whole side
« Reply #12 on: 27 Mar 2005, 19:57:18 »
I admit it was a long shot.

In some instances it works, in others it doesn't.

This must have been a  case of the latter.

Try all sorts of variants are you really really sure curly braces don't work.


Planck
I know a little about a lot, and a lot about a little.

Offline Pr0ph3t

  • Members
  • *
Re:Affect whole side
« Reply #13 on: 27 Mar 2005, 19:59:58 »
I did.. I tried everything.. Isn't there any other commands I can use ?

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Affect whole side
« Reply #14 on: 27 Mar 2005, 21:00:41 »
Ok prophet,

I just tried this in a trigger......set to 500 X 500.
Activated by West.....Once
On Activation........."_x setcombatmode ""red""" foreach list min

min was the trigger name


I was within the trigger range with my West squad.

And........it worked just fine, my men were ordered 'All, Engage At Will'


Planck
I know a little about a lot, and a lot about a little.