Home   Help Search Login Register  

Author Topic: Counting Units  (Read 952 times)

0 Members and 1 Guest are viewing this topic.

Cooba

  • Guest
Counting Units
« on: 09 Mar 2004, 19:07:57 »
Is there a possibility of counting the number of civil units (or any other side) under the area of trigger?
For example: if in the range of 100m x 100m there are less than 5 civil units the activation begins?

 8)

Knut Erik

  • Guest
Re:Counting Units
« Reply #1 on: 09 Mar 2004, 20:29:05 »
Try THIS!  :thumbsup:

Activation:  The side you want to be counted
Condition:  count thislist < 5
On activation:  hint "There are less than 5 units in the trigger"

This will make the trigger to activate if there is less than 5 units on the side that the trigger is activated by.

EXAMPLE:
If you have 5 people in the trigger and one leaves (walks out of the trigger) it will activate
If you have 5 people in the trigger and one of them gets killed the trigger gets activated as well.



I had a similar problem not so long ago. Take a look at the topic here

:cheers: Hope this helps!



:+:EDIT:+:
 :-[ :-[ :-[ :-[ :-[ ;D
« Last Edit: 09 Mar 2004, 20:52:47 by Knut Erik »

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:Counting Units
« Reply #2 on: 09 Mar 2004, 20:34:57 »
or

activation: by any, repeatedly

condition: civilian countside thislist < 5
on activation: what you want to do



Quote
If you have 6 people in the trigger and one leaves (walks out of the trigger) it will activate
You mean 5 of course  ;)
Not all is lost.

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:Counting Units
« Reply #3 on: 09 Mar 2004, 20:36:28 »
Try THIS!  :thumbsup:

Activation:  The side you want to be counted
Condition:  count thislist < 5
On activation:  hint "There are less than 5 units in the trigger"

This will make the trigger to activate if there is less than 5 units on the side that the trigger is activated by.

EXAMPLE:
If you have 6 people in the trigger and one leaves (walks out of the trigger) it will activate
If you have 6 people in the trigger and one of them gets killed the trigger gets activated as well.


I had a similar problem not so long ago. Take a look at the topic here

:cheers: Hope this helps!

lol Knut  ;D

Try again:

example 1: 6 - 1 = 5

example 2: 6 - 2 = 4

Which one is less than 5 now  ;)

~S~ CD
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

Cooba

  • Guest
Re:Counting Units
« Reply #4 on: 09 Mar 2004, 23:22:54 »
Thanx guys. You are always helpfull
 :)