OFPEC Forum

Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting Multiplayer => Topic started by: melandor0 on 17 May 2010, 20:41:48

Title: Who triggers my trigger?
Post by: melandor0 on 17 May 2010, 20:41:48
I'm trying to set up a simple scenario where if a trigger is activated by a player - in this case just by entering the trigger zone - he receives an artillery strike to use with the SecOps module. The onActivation line right now is:
Code: [Select]
[["artillery_barrage"], player1, [[Artillery1, [1,7,9]]]] call BIS_SOM_addSupportRequestFunc;As is this'll only give the unit "player1"  an artillery strike, not the activator. I'll probably not use this exact set-up later on but I need to know how to identify and use the name of the triggering unit.

Thanks!
Title: Re: Who triggers my trigger?
Post by: JasonO on 19 May 2010, 16:22:21
The variable thisList is an array that I believe contains anyone within the trigger. As far as I know, the first person within that would be that who triggered it. Might be worth giving that a shot.