Home   Help Search Login Register  

Author Topic: Can groups be grouped?  (Read 690 times)

0 Members and 1 Guest are viewing this topic.

ARVN Marvin

  • Guest
Can groups be grouped?
« on: 11 Apr 2003, 14:41:23 »
Howdy All  ;D

Sorry if this has been covered before, but is it possible to take, say 7 enemy groups (all named) and make them into one large group?

I'd like to utilize Unknown's GroupSeekout snippet to make 7 enemy groups go after a single player group. One of the parameters to enter when calling the script is "seekergroup"
Instead of having a trigger that would call this for each of the 7 groups, I'd like to take all 7 groups and make them one (like an array? still not sure what array is) so I can call the script one time with the "seekergroup" being a name that captures all 7 enemy groups.
Did that all make any sense? Thnx for all your help!! :D


MorMel

  • Guest
Re:Can groups be grouped?
« Reply #1 on: 11 Apr 2003, 15:05:45 »
I tried to make a realy big group once and it worked! Unfourtunately there were many units '0' and '12' and most of them occupied the same places in a formation. I did it in the following waY:

For each group create a waypoint with 'join' type. Then, one of those group should have 'Join and lead' waypoints synchronized with each one of the other's. As they join, you'll have bigger and bigger groups.... ;)

I didn't try this, but you could try to 'join' groups through the 'join' command:

units Group1 join Maingroup
units Group2 join Maingroup
units Group3 join Maingroup
units Group4 join Maingroup
.....

I'm not sure if it works...

Kinnon

  • Guest
Re:Can groups be grouped?
« Reply #2 on: 12 Apr 2003, 15:37:54 »
You could try this ...

Say your seven groups were named in the editor as follows:

MyGrp1,MyGrp2,MyGrp3,MyGrp4,MyGrp5,MyGrp6,MyGrp7.

In your script that calls the tracking script, stick them all in array like this :

biggroup = [MyGrp1,MyGrp2,MyGrp3,MyGrp4,MyGrp5,MyGrp6,MyGrp7]

Then call like this [biggroup, followthis] call "BigGroupTrack.sqs"

BigGroupTrack.sqs might look like this ...

_biggroup = _this select 0
_followme = _this select 1

;Now loop through all groups in the biggroup

_total = count _biggroup

_i = 0

#loop

_grp = _biggroup select _i

{your code to make them follow _followme goes here}

_i = _i +1

if (_i < _total) then {goto "loop"}

So you're not really making a proper group, because as you know there is a 12 unit limit, but your making a sort of a virtual group for the purpouses of your tracking script.





MorMel

  • Guest
Re:Can groups be grouped?
« Reply #3 on: 16 Apr 2003, 16:46:31 »
'Follow' command does only work within the group, not between groups. All you could do is 'join' them through Waypoints... I forgot to test the <join> command, but if you're really interested on making a big group, try it yourself :) as i told in the last post.

I hope you can solve your prob, mate!