Deathknight0897 1 Posted July 17, 2014 ok so after much testing and googling on this topic i have found no simple solution to my issue and it is such a simple issue. i want a small trigger to detect a fast moving objects ie:Jet However it appears the trigger is simply incapable of this unless the trigger area is huge which is no good for my project so is there some kind of script i can easily make to achieve my goal. i would prefer to be able to use the in game triggers so if there is some way to make them validate quicker that would be great Trigger size: 12 x 5 Trigger Condition: this && {((getPosATL _x) select 2) < 25} count thislist > 5 Share this post Link to post Share on other sites
Deathknight0897 1 Posted July 18, 2014 It appears this may be a bigger issue after more testing even a slow moving helicopter cant be detected yet if i bring it down i can walk through it and drive through it and it works fine some help on how to detect air vehicles would be great Ps:i even tried grouping the vehicle to the trigger still no cigar Share this post Link to post Share on other sites
ProfTournesol 956 Posted July 18, 2014 Is the trigger set to "present" or "detected by" ? And {((getPosATL _x) select 2) < 25 will detect under 25 meters, not above. Share this post Link to post Share on other sites
Grumpy Old Man 3551 Posted July 18, 2014 this && {((getPosATL _x) select 2) < 25} count thislist > 5 looks a bit odd, try this: this && ((getPosATL _x) select 2) < 25 [color="#FF0000"]&&[/color] count thislist > 5 removed unnecessary brackets too Share this post Link to post Share on other sites
Deathknight0897 1 Posted July 18, 2014 Trigger is set to anybody present as stated ive also linked it directly to the vehicle which usually works in these situations ---------- Post added at 16:06 ---------- Previous post was at 16:05 ---------- this && {((getPosATL _x) select 2) < 25} count thislist > 5 looks a bit odd, try this: this && ((getPosATL _x) select 2) < 25 [color="#FF0000"]&&[/color] count thislist > 5 removed unnecessary brackets too this dosent work as you are calling a global in local space Share this post Link to post Share on other sites
ProfTournesol 956 Posted July 18, 2014 And why should plane fly UNDER 25 meters high ? Share this post Link to post Share on other sites
Deathknight0897 1 Posted July 18, 2014 And why should plane fly UNDER 25 meters high ? Not that i understand why this is relevant but the objective i wish to create requires that a plane fly between an exact altitude to be more precise im creating flight rings a race track in the sky if you understand :p Share this post Link to post Share on other sites
ProfTournesol 956 Posted July 18, 2014 (edited) And more than 5 planes should be present under the given height at the same time in such a small trigger ? ( sorry if you don't think my questions are relevant, i'm trying to understand what you're trying to achieve). This works for me, if i try with one plane : this && {((getPosATL _x) select 2) < 25} count thislist > 0 Edited July 18, 2014 by ProfTournesol Share this post Link to post Share on other sites
Deathknight0897 1 Posted July 18, 2014 And more than 5 planes should be present under the given height at the same time in such a small trigger ? ( sorry if you don't think my questions are relevant, i'm trying to understand what you're trying to achieve).This works for me, if i try with one plane : this && {((getPosATL _x) select 2) < 25} count thislist > 0 oh shit ok emh ive made a mistake so ill explain more in depth what i am trying to achieve i though the 5 represented a minimum altitude so i though it meant less than 25 but greater than 5 that would explain why when i set it to 0 alt it worked cause i was really setting the quantity required so how would i achieve registering a minimum and maximum alt ie flying through a ring. ps:just reread my post i came over a little defensive i promise you it wasn't intended it was more of a pondering question Share this post Link to post Share on other sites
ProfTournesol 956 Posted July 18, 2014 So you're looking for something like : this && {(((getPosATL _x) select 2) < 150) && (((getPosATL _x) select 2) > 5)} count thislist > 0 But according to my tries, when the trigger is too small like yours, it doesn't work well (as trigger conditions are checked only every 0.5 seconds or so). Share this post Link to post Share on other sites
Deathknight0897 1 Posted July 18, 2014 So you're looking for something like : this && {(((getPosATL _x) select 2) < 150) && (((getPosATL _x) select 2) > 5)} count thislist > 0 But according to my tries, when the trigger is too small like yours, it doesn't work well (as trigger conditions are checked only every 0.5 seconds or so). got it working thank you very much changed the 1 to 3 and it registers 99.9% so long as not to fast Share this post Link to post Share on other sites