Jump to content

bbaanngg

Member
  • Content Count

    4
  • Joined

  • Last visited

  • Medals

Community Reputation

0 Neutral

About bbaanngg

  • Rank
    Rookie
  1. I was hoping there would be a way to do it within arma but figured there wouldn't be. Thanks for this though, will save a lot of time!
  2. I'm using a stringtable.xml to store text dialogue for my mission. Is there any way to create an array of all keys within a container? For instance, if I have something like this: <Package name="Dialogue"> <Container name="Greeting"> <Key ID="STR_Greeting1"> <Original>Hello.</Original> </Key> <Key ID="STR_Greeting2"> <Original>Hi.</Original> </Key> </Container> I want to make a function that will create an array of all the keys inside the "Greeting" container in an sqf file. Something like this: _greetigns = ["STR_Greeting1", "STR_Greeting2"]; so that I can localize them and use them in order. Is there any way to do this?
  3. Thanks for the help. I actually didn't know you could create the group and the unit in the same line like that. I ended up using this: private _unitClasses = ["class1", "class2", "classN"]; { private _u = createGroup OPFOR createUnit [selectRandom _unitClasses, markerPos _x, [], 25, "NONE"]; } forEach _Markers; It works perfectly, thanks again!
  4. In a project I have been working on I use this code to spawn empty groups based on how many markers are in a trigger. { missionNamespace setVariable [format["grp%1",_x], createGroup east]; } forEach _Markers; So how would I go about spawning 1 opfor unit in each group until all groups have 1 unit in them? Or is there a better way of doing this in general?
×