Harkonin 0 Posted January 6, 2004 I'll be darned if I can get the syntax right but I need a unit in an array to execute a script. What I've tried - "[_x] Exec Scriptname.sqs" foreach units arrayname "[_x Exec Scriptname.sqs" Foreach units arrayname Etc.Etc.. Anyone else got 1 that will work? Share this post Link to post Share on other sites
the_unknown_one 0 Posted January 6, 2004 just try _x and change the script to not "blahblah = this select 0" to "blahblah = this". If you can. the_unknown_oe Share this post Link to post Share on other sites
Harnu 0 Posted January 6, 2004 [_x] exec "script.sqs" foreach units arraname Share this post Link to post Share on other sites
Harkonin 0 Posted January 7, 2004 Nope and nope thanks anyways guys. Figured it out by the way - {[_x] Exec "Scriptname"} forEach _array Share this post Link to post Share on other sites
Taurus 20 Posted January 7, 2004 Nope and nope thanks anyways guys.Figured it out by the way - {[_x] Exec "Scriptname"} forEach _array Only works on Ofp Res, or? Share this post Link to post Share on other sites
Harkonin 0 Posted January 7, 2004 dunno I run versions 1.91 and 1.94. Share this post Link to post Share on other sites
Bart.Jan 0 Posted January 8, 2004 Nope and nope thanks anyways guys.Figured it out by the way - {[_x] Exec "Scriptname"} forEach _array You can also use <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">"[_x] Exec ""Scriptname""" forEach _array for OFP v.<1.85 Share this post Link to post Share on other sites