Home   Help Search Login Register  

Author Topic: currentCommand == "" (How to recognize "doing nothing") SOLVED  (Read 1261 times)

0 Members and 1 Guest are viewing this topic.

Offline laggy

  • Members
  • *
  • "Behold a pale horse"
Hello again,

Is there a way to check if the unit has NO currentCommand?
If there is no currentCommand the string is empty and how can you check if the string is empty?

The solution in my post title doesn't work.

currentCommand == "MOVE" or currentCommand == "ATTACK" works like a charm.
But I want to detect when a unit is ordered to do nothing.

Is it possible?

unitReady doesn't work well enough for my purposes.

Thanks in advance.

Laggy

« Last Edit: 22 Mar 2009, 01:04:45 by laggy »
And I looked and beheld a pale horse and his name that sat on him was Death and Hell followed with him.

Offline Deadfast

  • Members
  • *
Re: currentCommand == "" (How to recognize "doing nothing")
« Reply #1 on: 22 Mar 2009, 00:08:49 »
Well, currentCommand guy1 == "" works fine with me... :)
« Last Edit: 22 Mar 2009, 00:12:41 by Deadfast »

Offline laggy

  • Members
  • *
  • "Behold a pale horse"
Re: currentCommand == "" (How to recognize "doing nothing")
« Reply #2 on: 22 Mar 2009, 00:48:14 »
 :blink:

You get that to fire a trigger or something ?
I get no errors, but it doesn't seem to work.

EDIT:

You are right, it does work.
Don't know why it didn't work earlier  ???
Thanks for your answer.
« Last Edit: 22 Mar 2009, 01:05:13 by laggy »
And I looked and beheld a pale horse and his name that sat on him was Death and Hell followed with him.

Offline Deadfast

  • Members
  • *
The joys of ArmA scripting :)


No problem and good luck ;)