Home
Intel Depot
Editors Depot
Missions Depot
Addons Depot
Forum
Home
Help
Search
Login
Register
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
Group commands that have quotations
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: Group commands that have quotations (Read 422 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!
ChEeRs,
Sniper_Kyle ;D
Logged
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!
Logged
macguba
Former Staff
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.
«
Last Edit: 12 Sep 2003, 00:04:12 by macguba
»
Logged
Plenty of
reviewed ArmA missions
for you to play
LCD
Former Staff
Re:Group commands that have quotations
«
Reply #3 on:
12 Sep 2003, 02:00:06 »
actualy d games do luv double qoutes
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
Logged
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing -
O-Team Beta
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
Group commands that have quotations
Top of page