OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: 456820 on 23 May 2005, 20:43:23
-
okay im using bremners ai script V1.1 well actually im trying to get it to work i have this in the init field after 3 seconds.
[grp11, grp12, grp13, grp16],[],[],[],[grp14, grp15],1,0] exec "ai.sqs"the syntax is copied out like this
;group   -   the ai group name, or some path to the group name (eg group this)
;air      -   anti-air support group names
;arm      -   anti-armoured support group names
;art      -   artillery support group names
;gro      -   ground support group names
;flaring   -   specify whether group will use flares (1 for available, not available otherwise)
;tactical   -   specify whether group will use ai tactics (1 for available, not available otherwise)
its saying i have a missing "]" just before the last one so i put that in but didnt work so i tryed all sorts like commas about 100 ']' it should work but doesnt so im wondering if any of you know the answer
EDIT - Sorry i relised this probally should of gone in the editors depot board sorry
-
[[grp11, grp12, grp13, grp16],[],[],[],[grp14, grp15],1,0] exec "ai.sqs"
I haven't used the script meself, but that should do it.
:beat: *Gets Shot* :beat:
EDIT: WTH? Why doesn't the first '[' show? >:(
-
[grp11, grp12, grp13, grp16],[],[],[],[grp14, grp15],1,0] exec "ai.sqs"
Your missing a [ at the start.
Put it in before the very first bracket
Blip :joystick:
-
Seems like
[grp11, grp12, grp13, grp16],[],[],[],[grp14, grp15],1,0] exec "ai.sqs"
should be
[[grp11, grp12, grp13, grp16],[],[],[],[grp14, grp15],1,0] exec "ai.sqs"
or, the syntax quide maybe suggests it like
[grp1only,[],[],[],[grp14, grp15],1,0] exec "ai.sqs"go figure ::)
-
beat you Artak by 36 seconds ;D
-
okay i tried artak's second one but it said i failed to specify enemy units script terminated also i think i ot the beggining bit wrong its not missing a '[' its missing a ']' at the end just before
"exec "ai.sqs""
-
Its an array of arrays so if you just add an ']' on the end it will still be wrong.
Artak and co are right, you need an '[' at the beginning.
Planck
-
i put a '[' at the begining and it said i failed to say the enemy's so it script terminated and the error messag sas something like
'0#] exec "ai.sqs" error missing ']' in array'
or somehing like that
-
According to your first post the first element should just be a group name, you have an array of group names.
I don't know this script so I'm just going on what you posted.
Planck
-
Is it possible that the 1 or the 0 at the end are suppose to be part of an array and therefore need to bracketed as well?
It wouldn't hurt to post the beginning of the actual script so we can see what it looks like.
Blip :joystick:
-
well actually it doesnt matter now ive just managed to fix it just now literally about 10 seconds ago i put it in a sript called.ai_assighn.sqs wich the demo missions show