Home   Help Search Login Register  

Author Topic: Group commands that have quotations  (Read 336 times)

0 Members and 1 Guest are viewing this topic.

Kyle

  • Guest
Group commands that have quotations
« on: 11 Sep 2003, 23:49:15 »
Hey all,
   I have been having this problem since I got into making group commands (you know, "_x domove getpos base" foreach idiots; and all that).  My problem is when the command involves quotations.  The game gets confused ??? if I put something like: "_x setunitpos "UP"" foreach idiots.  I can't understand how to do this.  Some1 plz help fast so I can complete some missions!  :D

ChEeRs,
Sniper_Kyle ;D

Offline ACF

  • Members
  • *
  • Llama?? Ain't that French for tanks?
Re:Group commands that have quotations
« Reply #1 on: 12 Sep 2003, 00:02:28 »
The solution's hidden in the Command Reference as an example, but not explained very well.  Use curly brackets for code strings, not quotes:

{_x setunitpos "UP"} foreach idiots

Hope that moves you on!

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Group commands that have quotations
« Reply #2 on: 12 Sep 2003, 00:03:22 »
You're right, the game doesn't like multiple quotes.    Fortunately you can use curly brackets { } instead of quotes.    Sometimes you need to experiment a bit to discover which set of " " need to be replaced with { } to make a line of code work.

Edit:  Damn, too slow again. :P
« Last Edit: 12 Sep 2003, 00:04:12 by macguba »
Plenty of reviewed ArmA missions for you to play

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Group commands that have quotations
« Reply #3 on: 12 Sep 2003, 02:00:06 »
actualy d games do luv double qoutes :P

if u wanna use da qoutes nd stil have it useable w/ da old ver (or just dontlike 2 use {})

u can use double qoutes inside da oder qoutes (aint clear right ? ::))

so it wil go somin like dat

"_x setunitpos ""UP""" foreach idiots

:cheers:

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta