Home   Help Search Login Register  

Author Topic: setcombat mode and foreach thislist  (Read 702 times)

0 Members and 1 Guest are viewing this topic.

seanver

  • Guest
setcombat mode and foreach thislist
« on: 31 Oct 2002, 13:37:55 »
I'm trying to make all units in a trigger stop shooting once the enemy is starting to retreat. I know how to do that. But here's the problem.

I use this command to make them hold their fire:

"_x setcombatmode "BLUE"" foreach thislist

But the editor gives me an error:  Unkown operator BLUE.

If I don't put the " " between BLUE, it doesn't return an error but the command doesn't work, since it must be unit setcombatmode "BLUE"...

any ideas?

Bremmer

  • Guest
Re:setcombat mode and foreach thislist
« Reply #1 on: 31 Oct 2002, 14:18:04 »
Try this:

"_x setcombatmode ""BLUE""" foreach thislist

(Honest - it may look daft, but it works!  ::))

Or this:

blue = "blue"; "_x setcombatmode blue" foreach thislist

Cheers  :)

seanver

  • Guest
Re:setcombat mode and foreach thislist
« Reply #2 on: 31 Oct 2002, 14:28:22 »
Thanks m8