Home   Help Search Login Register  

Author Topic: Creating Groups and calling them in scripts.  (Read 1778 times)

0 Members and 2 Guests are viewing this topic.

Ace Productions

  • Guest
Creating Groups and calling them in scripts.
« on: 13 Sep 2003, 19:33:35 »
I've seen from time to time in the forums pieces here and their of how to join a group, name a group etc. I've tried different things but I always end up with errors like object expected etc.

Can please someone explain to me step-by-step:
(a) How to create a group
(b) How to name it
(c) How to assign who's leader
(d) How to edit commands to this group (i.e. setbehaviour, setunitposition etc)

The units to be grouped are: SS1,SS2,SS3,SS4,SS5 (not grouped in editor)

If there is a tutorial somewhere (eventhough I've been searching for a while) please direct me to it so I don't take your time.

Thanks in advance.  :)

Offline Burn

  • Members
  • *
Re:Creating Groups and calling them in scripts.
« Reply #1 on: 14 Sep 2003, 00:15:03 »
Quote
(a) How to create a group
You mean how to join a bunch of loons :-\
e.g. Loon1 join player, I think you could do the same in an array too ::)
e.g. [L1,L2,L3] join player
[L1,L2,L3] join group AG ...will automatically join the units in the array in a group named AG, so you dont have to name it later (not 100% shure on the syntax)
Quote
(b) How to name it
alphaGroup = group this ...in the init field of the leader.
Quote
(c) How to assign who's leader
Loon = leader GroupName (once again, not 100% shure on the syntax)
Quote
(d) How to edit commands to this group
e.g. loon setBehaviour "careless"
                                     "safe"
                                     "aware"
                                     "combat"
                                     "stealth"
Loon setCombatMode "blue" (never fire)
                                    "green" (hold fire)
                                    "white" (hold fire - engage at will)
                                    "yellow" (fire)
                                    "red" (fire - engage at will)
It's enough to set the bahaviour of the leader and the rest of the groupmembers should follow...
but if that don't work for some reason just use the groupname instead of the leaders name.
« Last Edit: 14 Sep 2003, 00:32:54 by Bizon »

Ace Productions

  • Guest
Re:Creating Groups and calling them in scripts.
« Reply #2 on: 19 Sep 2003, 15:57:33 »
Bison thanks for your help and time mate. Your reply was everything I needed to minimise my scripts.

Thanks again bro.