Home   Help Search Login Register  

Author Topic: Triggers report all within?  (Read 871 times)

0 Members and 1 Guest are viewing this topic.

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Triggers report all within?
« on: 25 Jan 2005, 20:39:07 »
A trigger set East Side Present Repeatedly. Some east inf enter trigger and activate it.  Some more east inf enter trigger, before previous east inf have left, and activate it again.

On the second activation will the trigger's thislist contain all east inf within the trigger, or only those east who have just activated it?
urp!

StonedSoldier

  • Guest
Re:Triggers report all within?
« Reply #1 on: 25 Jan 2005, 21:04:28 »
only those who orginally fired up the trigger are included in the list, unless all east guys leave the trigger area then return, thus fireing the trigger again

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Triggers report all within?
« Reply #2 on: 25 Jan 2005, 23:52:35 »
My understanding is that thislist (or list triggerName) is dynamic:   at any given moment the array contains the units who are at that moment in the trigger's area and mentioned in the first part of the Activation box.    (East, in this case.)   It makes no difference whether the trigger has been fired.

Triggers set to Repeatedly do not fire continually.    They need to deactivate before they can fire again.   In this case that would mean that East would have to be present (for the first firing);  leave;  and then arrive again for the second firing.     If East are present continuously the trigger will not fire a second time.

You can "freeze" the contents of the array, in a script for example, with a + command.

You can easily create a missionette to test this.
« Last Edit: 25 Jan 2005, 23:53:24 by macguba »
Plenty of reviewed ArmA missions for you to play

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re:Triggers report all within?
« Reply #3 on: 26 Jan 2005, 02:36:06 »
A trigger must be deactivated before being reactivated? Crap.  I'll have to test to make sure.

When you say use '+' to freeze contents of an array I presume you mean make a copy of the array?


« Last Edit: 26 Jan 2005, 02:38:32 by Mr.Peanut »
urp!

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Triggers report all within?
« Reply #4 on: 26 Jan 2005, 11:35:24 »
From a working script:

_trigList = list mapTrig
_upList = +_trigList


_trigList is a dynamic array.
_upList is a static, fixed array.
« Last Edit: 26 Jan 2005, 11:36:02 by macguba »
Plenty of reviewed ArmA missions for you to play

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re:Triggers report all within?
« Reply #5 on: 26 Jan 2005, 15:23:38 »
Crap.  It's true.  Triggers will not reactivate until deactivated.
urp!