fouba74 10 Posted July 13, 2010 hi all :) player distance 10 < a1 that is how i type it in the condition field in a trigger .. But how do i type it in a script ? . regards fouba74 Share this post Link to post Share on other sites
intruder_ger 10 Posted July 17, 2010 not 100% sure Quote while {10 < (player Distance a1)} do {"action";}; Regards Intruder Share this post Link to post Share on other sites
PuFu 4600 Posted July 18, 2010 This forum is for ADDONS - Configs and Scripting. MISSION editing is on another sub-forum. Share this post Link to post Share on other sites
fouba74 10 Posted July 18, 2010 pufu . and how can you be so sure that i need this command for a mission ? OO . this is for an addon .. Share this post Link to post Share on other sites
PuFu 4600 Posted July 18, 2010 my bad then: http://community.bistudio.com/wiki/SQF_syntax http://community.bistudio.com/wiki/Control_Structures Share this post Link to post Share on other sites
Big Dawg KS 6 Posted July 18, 2010 waitUntil{player distance a1 < 10}; // code to execute after player is less than 10m from a1 Share this post Link to post Share on other sites