OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: The-Architect on 29 May 2008, 04:21:04

Title: Change from OFP
Post by: The-Architect on 29 May 2008, 04:21:04
How do I convert this so it will work in ArmA?

Code: [Select]
_unitarray= units group player
?("_x hasweapon {soandsoweapon}" count _unitarray)>0:goto "hasradio"
~1
goto "blah blah blah"

#hasradio
blah, blah, blah.

Cheers.  :D
Title: Re: Change from OFP
Post by: Wolfrug on 29 May 2008, 04:48:46
ArmA no longer uses those wiggly brackets and quotes interchangably: wiggly bracket = code, quotation marks = string.

So:

Code: [Select]
?({_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.
Title: Re: Change from OFP
Post by: The-Architect on 29 May 2008, 16:28:40
Yeah, that did it. Cheers man.