big_wilk 12 Posted September 30, 2015 You really need to add more details to your posts. I'm guessing what you want is.. an example of only running code if the map click is withing 500 of a position: if (_mapClickPos distance _centrePos < 500) then { /* run your code here */}; Share this post Link to post Share on other sites
Ilias38rus 5 Posted September 30, 2015 Yeah, got the idea, thanks. Share this post Link to post Share on other sites
Ilias38rus 5 Posted September 30, 2015 You really need to add more details to your posts. I'm guessing what you want is.. an example of only running code if the map click is withing 500 of a position: if (_mapClickPos distance _centrePos < 500) then { /* run your code here */}; And how to make the if like 'if in marker area' or 'if in trigger area'? Share this post Link to post Share on other sites
jshock 513 Posted September 30, 2015 For in a trigger area (I believe it actually works directly for markers as well): https://community.bistudio.com/wiki/BIS_fnc_inTrigger Share this post Link to post Share on other sites
Ilias38rus 5 Posted September 30, 2015 For in a trigger area (I believe it actually works directly for markers as well): https://community.bistudio.com/wiki/BIS_fnc_inTrigger Thank you. Share this post Link to post Share on other sites
big_wilk 12 Posted September 30, 2015 @cba_a3 also has a function that checks marker ares. Share this post Link to post Share on other sites
Ilias38rus 5 Posted September 30, 2015 @cba_a3 also has a function that checks marker ares. Thanks Share this post Link to post Share on other sites