kcal 6 Posted October 7, 2019 hello, i'm new here, and I just started scripting, and I think it's fun. i have some basic question. what does "thisList select 0" in "on activation" of triggers mean? i'm not sure but i guess it is an object that triggered it. Where can I see the ordering rules of thisList? Please excuse my poor English.. Share this post Link to post Share on other sites
killzone_kid 1329 Posted October 7, 2019 Check https://community.bistudio.com/wiki/setTriggerStatements and https://community.bistudio.com/wiki/Magic_Variables#thisList Share this post Link to post Share on other sites
haleks 8212 Posted October 7, 2019 "thisList" is an array : a list containing several objects : [obj1, obj2, obj3] In this case, the array contains all units/objects that fulfil the trigger's condition statement. Use this code in the "on activation" field to see what is included in thisList : hint str thisList The "thisList select 0" code simply selects the first element in that array (indexing starts at 0 when going through arrays). 1 Share this post Link to post Share on other sites
pierremgi 4836 Posted October 7, 2019 Hello. Welcome on forum. thisList is a special variable for triggers, which returned the objects (units/vehicles) satisfying the preset conditions (example BLUFOR present). You can use it in condition and on activation fields but not in on deactivation field where it doesn't mean anything. thisList select 0 is just the first object in the list (if any). 1 Share this post Link to post Share on other sites
kcal 6 Posted October 7, 2019 thank you very much everyone! Share this post Link to post Share on other sites
XstinK 10 Posted May 10, 2022 If i enter in a trigger with a chopper, who is 0 and who is the number 1 ? Share this post Link to post Share on other sites
Harzach 2516 Posted May 10, 2022 1 hour ago, XstinK said: who is 0 and who is the number 1 There is no way to know, exactly, other than retrieving them and seeing "who" they are. The array isn't built in such a way that the order of elements is necessarily the same as the order of triggering entities. What are you trying to do? 2 Share this post Link to post Share on other sites