Home   Help Search Login Register  

Author Topic: Mass groupthis'ings....  (Read 550 times)

0 Members and 2 Guests are viewing this topic.

keou

  • Guest
Mass groupthis'ings....
« on: 30 Oct 2003, 17:18:48 »
is there an easy way to groupthis ALL the East side or ALL the West side at once?

i have a mission already made and would like to set up the Spectator script to include all soldiers.  i know how to setup the Spectator script to use the groups name instead of the indiv. name.

i'm just looking for a trigger to run at the beginning (and perhaps later for the respawns) that will assign a blanket group name per side.

i tried a trigger with "_x foe=groupthis" foreach units thislist

but i think i'm missing something (got an error).

any ideas??

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Mass groupthis'ings....
« Reply #1 on: 30 Oct 2003, 17:54:02 »
I don't know anything about spectator scripts, but the command inside the quotes doesn't make much sense.    What do you mean a "blanket group name"?    A group can have only 12 members.    

If you get an error it's always worth posting it.  Helps us figure out what's going wrong.


Edit:  have read your post again.    You can't solve the problem by creating a giant group.    A group is just an array:   all the loons on one side is just an array.    If the Spectator script can handle one array it can presumably handle another.   All you have to do is create the array you want and pass it to the script at the appropriate place(s).

So you want an array of, say, all the east loons.    Can't remember exactly but create a trigger covering the whole map.

Activation:  east present
On activation:    eastArray = thislist

That will give you an array called eastArray which is all the east units at the start of the mission.
« Last Edit: 30 Oct 2003, 18:17:16 by macguba »
Plenty of reviewed ArmA missions for you to play

Offline Spinor

  • Members
  • *
  • I'm a llama!
    • The chain of command
Re:Mass groupthis'ings....
« Reply #2 on: 30 Oct 2003, 18:12:33 »
I don't think you have to automatically assign a group name to each group.
I think, an alternative way would be store all groups (of one side) in array.

Lets say that _units stores all units of a given side, e.g. supplied by a trigger
covering the whole map. The following snippet should then create an array _groups
of all groups of that side:

_groups = []
{_grp = group _x; if(!(_grp in _groups)) then {_groups = _groups + [_grp]}} forEach _units

Then, you can apply the spectator script to all groups in that array.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Mass groupthis'ings....
« Reply #3 on: 30 Oct 2003, 18:19:22 »
Forgot to say that "this" is normally only used in the init line of a unit.     Elsewhere the game doesn't know what "this" is.
Plenty of reviewed ArmA missions for you to play

keou

  • Guest
Re:Mass groupthis'ings....
« Reply #4 on: 30 Oct 2003, 19:16:37 »
ah....i wasn't aware of the group only being allowed a maximum number.

so, i went in shooting for the array and got it to work.

thankyou for all the replies!! ;)


ALSO to macguba:

i saw your tag about your mouse.  i found that newer operating systems can handle the scroll mouse with no problem.  the misleading thing about this is that sometimes people forget to install the proper drivers/software that goes with the mouse.  in addition, sometimes even with the right software, the scroll wheel gets reassigned.  what you want to do is reassign the button asset of the scroll wheel (the center mouse click on the scroll wheel).  i'm at work, so i don't have my setup, but i had to reassign the button via the software that came with the mouse or via the Control Panel "Mouse" program.  hope that helps.