OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: The-Architect on 29 May 2008, 04:21:04
-
How do I convert this so it will work in ArmA?
_unitarray= units group player
?("_x hasweapon {soandsoweapon}" count _unitarray)>0:goto "hasradio"
~1
goto "blah blah blah"
#hasradio
blah, blah, blah.
Cheers. :D
-
ArmA no longer uses those wiggly brackets and quotes interchangably: wiggly bracket = code, quotation marks = string.
So:
?({_x hasweapon "soandsoweapon"} count _unitarray)>0:goto "hasradio"
Should work, unless there's something wrong in the count thing (those thingies always confuse the heck out of me)
Wolfrug out.
-
Yeah, that did it. Cheers man.