Home   Help Search Login Register  

Author Topic: Assigning groups to arrays...  (Read 461 times)

0 Members and 1 Guest are viewing this topic.

TheAbomb12

  • Guest
Assigning groups to arrays...
« on: 01 Apr 2004, 05:00:53 »
I have two question really...

1) How do I name a group? is it the name of the squad leader?

2) how do I place a group or a group of objects into an array? (I need this for the "unit countEnemy array" to count the amount of enemies)


thanks in advance :)


Regards,

-Barrett

Chudley

  • Guest
Re:Assigning groups to arrays...
« Reply #1 on: 01 Apr 2004, 05:35:02 »
Quote
1) How do I name a group? is it the name of the squad leader?


To name a squad, type this in the group leader's init field
<groupname> = group this


Quote
2) how do I place a group or a group of objects into an array? (I need this for the "unit countEnemy array" to count the amount of enemies)

A little more complex.... :-\
You'll have to elaborate on exactly what you want to do.

TheAbomb12

  • Guest
Re:Assigning groups to arrays...
« Reply #2 on: 01 Apr 2004, 07:24:06 »
Quote
A little more complex....
You'll have to elaborate on exactly what you want to do.


Well, actually I want to find out the number of enemies left in the game; I have two sides (east and resistance) and basiclly I want to know the exact value of how many units are left.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Assigning groups to arrays...
« Reply #3 on: 01 Apr 2004, 10:59:19 »
Trigger

Area:  whole map
Activation:   East present
Condition:    this and var1
On activation:   numberE = count thislist

When the variable var1 is set to true, the variable numberE will be set to the number of east units on the map.    Alternatively

On Activation:   eastArray = thislist

Syntax etc not guaranteed.
Plenty of reviewed ArmA missions for you to play

TheAbomb12

  • Guest
Re:Assigning groups to arrays...
« Reply #4 on: 01 Apr 2004, 21:42:19 »
I need to check east AND resistance; as I have set the resistance to be enemies to west which is currentlly the side the player is on.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Assigning groups to arrays...
« Reply #5 on: 01 Apr 2004, 23:17:17 »
Just use one trigger for each side.    
Plenty of reviewed ArmA missions for you to play