Home   Help Search Login Register  

Author Topic: Not Present XX%  (Read 499 times)

0 Members and 1 Guest are viewing this topic.

SET-Lövet

  • Guest
Not Present XX%
« on: 05 Oct 2004, 13:52:05 »
Is there a way to make a "not present" trigger that will activate when 50% of the units arent present

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Not Present XX%
« Reply #1 on: 05 Oct 2004, 14:14:15 »
Your question makes no sense.    50% of what?

Forget the "not present" bit.    Just tell us what you are trying to do.  :)
Plenty of reviewed ArmA missions for you to play

Offline Tyger

  • Former Staff
  • ****
  • I was at OFPEC when it still had dirt floors...
    • OFPEC
Re:Not Present XX%
« Reply #2 on: 05 Oct 2004, 17:13:49 »
if i understand ur question, u want to know when 50 percent of all units on a specific side are not present.

to do that make a trigger covering the whole map, and set activated by: side u want to count.
then in the conditions: true and on activation: trigAList = thislist; numbAList = count trigAList

then make another trigger:
activated by: side u want to count
condition: trigAList == (0.5 * numbAList)
on activation: whatever you want...
"People sleep soundly at night only because rough men stand ready to do violence on their behalf." - George Orwell

MSG Mike Everret - We Will Never Forget - '75-'08

SET-Lövet

  • Guest
Re:Not Present XX%
« Reply #3 on: 05 Oct 2004, 18:59:01 »
okay ... lets try again

is there a way to make a trigger activate when 50 % of the units inside of the trigger is dead. Like enemy reinforments will arrive when i have killed half of the bad guys inside of the trigger. I hope this makes sense

SET-Lövet

  • Guest
Re:Not Present XX%
« Reply #4 on: 05 Oct 2004, 19:26:45 »
whoops  ;D didnt notice the answer. thanks tyger

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Not Present XX%
« Reply #5 on: 05 Oct 2004, 19:31:59 »
Use <= rather than == in case the original number of loons is odd.

As a general point, == is to be avoided whenever possible.   If you get a rounding error of 0.0000000001 then your script/trigger won't work.
Plenty of reviewed ArmA missions for you to play

Offline Tyger

  • Former Staff
  • ****
  • I was at OFPEC when it still had dirt floors...
    • OFPEC
Re:Not Present XX%
« Reply #6 on: 07 Oct 2004, 00:14:18 »
maccy, u always gotta ad that cherry on top.

Touche, maccy, touche ;)
"People sleep soundly at night only because rough men stand ready to do violence on their behalf." - George Orwell

MSG Mike Everret - We Will Never Forget - '75-'08

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Not Present XX%
« Reply #7 on: 07 Oct 2004, 01:31:31 »
Lol  ;D

Actually, like so many things, that's one I learnt the hard way.    OFP is a fickle mistress as mad as fuck and does things like that just to piss you off.
« Last Edit: 07 Oct 2004, 01:32:18 by macguba »
Plenty of reviewed ArmA missions for you to play

Offline Blanco

  • Former Staff
  • ****
Re:Not Present XX%
« Reply #8 on: 09 Oct 2004, 02:27:54 »
lol, that"s true  :)
Search or search or search before you ask.