OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: laggy on 21 Mar 2009, 22:49:05
-
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
-
Well, currentCommand guy1 == "" works fine with me... :)
-
: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.
-
The joys of ArmA scripting :)
No problem and good luck ;)