OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Mr.Peanut 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?
-
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
-
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.
-
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?
-
From a working script:
_trigList = list mapTrig
_upList = +_trigList
_trigList is a dynamic array.
_upList is a static, fixed array.
-
Crap. It's true. Triggers will not reactivate until deactivated.