Home   Help Search Login Register  

Author Topic: Check if there are enemies in trigger.  (Read 573 times)

0 Members and 1 Guest are viewing this topic.

Dominaatori

  • Guest
Check if there are enemies in trigger.
« on: 09 Nov 2004, 07:07:24 »
in the condition field in a trigger can u this:

EAST CountSide ppl == 0

to check if there are anyone in that trigger ?'
If not then how is it done ?

Offline Sentinel

  • Contributing Member
  • **
  • World is tough and I'm tougher!!
Re:Check if there are enemies in trigger.
« Reply #1 on: 09 Nov 2004, 10:32:16 »
I think you should place thislist instead of ppl

east countside thislist == 0

don't know for sure  :P

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:Check if there are enemies in trigger.
« Reply #2 on: 09 Nov 2004, 10:34:01 »
uhh... couldn't you just use east not present?

Dominaatori

  • Guest
Re:Check if there are enemies in trigger.
« Reply #3 on: 09 Nov 2004, 13:37:41 »
yes I know trigger, I just wanted to get hang of scripting. And btw sentinel, ppl is just a variable, it could be anything, f.ex. fjidgölksdjgölkjsdfg

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Check if there are enemies in trigger.
« Reply #4 on: 09 Nov 2004, 15:01:00 »
In the spirit of trying to get the hang of things.  Are you aware that  thislist
in the activation field of a trigger will be an array of all the units that have caused the trigger to fire?

Dominaatori

  • Guest
Re:Check if there are enemies in trigger.
« Reply #5 on: 09 Nov 2004, 16:22:46 »
Oh ok, but im talking about condition field.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Check if there are enemies in trigger.
« Reply #6 on: 09 Nov 2004, 16:33:09 »
I'm too thick to understand this thread at all.  

1.  
Quote
EAST CountSide ppl == 0
What happened when you tried it?    

2.  How does that line of code relate to the trigger area?   What are you trying to do?    ppl is obviously an array of units, but what units?    

3.  thislist works fine in the Condition field.
Plenty of reviewed ArmA missions for you to play