Home   Help Search Login Register  

Author Topic: how do you count number of units per side  (Read 810 times)

0 Members and 2 Guests are viewing this topic.

stuartf

  • Guest
how do you count number of units per side
« on: 24 Jul 2003, 20:44:37 »
i want a trigger to activate when the number of units of an entire side... in this case 'civilian' drops to a certain number.

what is the trigger condition, plz?  :)

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:how do you count number of units per side
« Reply #1 on: 24 Jul 2003, 21:16:02 »
Try
CIV countside thislist < 10
in a triggers condition field. That should make the trigger tick off when under 10 units in it's area.
Not all is lost.

Offline rhysduk

  • Former Staff
  • ****
Re:how do you count number of units per side
« Reply #2 on: 25 Jul 2003, 12:58:23 »
There is a way of activating a script that is on a continous loop - - This script will check the number of units per side conitously for however long is needed ....

If u want a certain effect when the number reches whatever u want it 2 - u can call another script from the script that is counting the units per side....

There is only one problem - i do nt know what the script is and i wish i did - hunt/ask around - i  think i saw one in the editors depot not long back..

Hope i was some help

Rhys
Reviewed Missions Board: Please Read the User's Guide before posting!

Pride and Joy 1 (HW100-T)

stuartf

  • Guest
Re:how do you count number of units per side
« Reply #3 on: 25 Jul 2003, 21:17:11 »
nice one.

thx to u both.

i tried ur condition artak, and although it didn't work on its own, (when there was no reason why it shouldn't have), i tried it with an 'anybody present &&' precursor and it worked perfectly.

odd. but fixed.

thx for the replies gents, much appreciated.

stuart.

 ;D