Jump to content
Sign in to follow this  
Falke88

How to pick data from DAC Configs?

Recommended Posts

Hey guys!

I'm kinda new to scripting but well, did it back the days in OFP pretty often.

Long time tho...

---

Back to the Topic...

I want you to ask how can I use variables or data from an existing config?

Example:

Theres a DAC Config File which stores all creates DAC Zones.

There I can find the "Zone_Name" and within the name the "Zone_ID". The Zone ID contains alle Zone Names which have the same ID. (It's used to link zones with each other withing DAC)

Now I want to get all Zone Names which use the specific Zone ID

Noob Example:

"Zone_ID_1" -> contains "Zone_NameA" & "Zone_NameB"

in MY Config I want to add these names just by telling the Zone ID

like:

Hey I want to use the Waypoints of ["Zone_ID_1"] so my script will work.

= should take the data from that DAC Config file and paste it in my config

Hey I want to use the Waypoints of ["Zone_NameA", "Zone_NameB"]

I imagined that it will mybe look like that (totally scifi script here)

{

get [open "DAC_Zones.sqf"]

lookfor [Zone_ID_1] then get "Zone_Names" within "actual_function"

and paste them into my config for variable "Zone_ID_1"

:D I wish it would be that easy...

hope you can follow me until here...

PS: Please don't bugger me about "hey dude first learn scripting at all"

I don't wanna know everything about scripting - just the things I need to know for my actual idea.

greets falke

Edited by Falke88

Share this post


Link to post
Share on other sites

well i'm using this on a deticated anyways so it shouldnt be a prob here.

But that won't answer my whole question anyway....

DAC_Zones is set as a variable here - but how can I get infos / data about the Zone IDs and their belonging Zones (Zone Names)

Edited by Falke88

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×