splatsh 10 Posted July 19, 2009 Ok, I have this in one other thread, but that thread is about eject, and now my eject are working. But its not working as I would like it to. Check this. Working {unassignvehicle _x;} foreach units _leader; {_x action ["EJECT", _vcl_new];} foreach units _leader; NOT working { unassignvehicle _x; _x action ["EJECT", _vcl_new]; sleep 0.5; } foreach units _leader; I cant get this second code to work. Why cant I that? This code seems to work for others when using in it. But mine is not working, I cant get this sleep to work. Please help. Share this post Link to post Share on other sites
Ghost 40 Posted July 19, 2009 try with sleep 0.5; deleted Share this post Link to post Share on other sites
TeRp 1 Posted July 19, 2009 Are you using sqs (exec) or sqf (execVM) to execute the script? Share this post Link to post Share on other sites
f2k sel 164 Posted July 20, 2009 There is nothing wrong with the script they get out and if you increase sleep to 5secs you see the difference. If the filetype is SQS it will need to be ~0.5; for it to work. Share this post Link to post Share on other sites
rocket 9 Posted July 20, 2009 try using "units group _leader;" I believe, from the wiki, it works based on a unit. But I would go with deriving the units from the group, not from the leader. Also, post the whole script. Very little can be deduced from this without all the rest of it. Share this post Link to post Share on other sites
t_d 47 Posted July 20, 2009 do you call the script with execVM or spawn? Make sure you dont start it with exec. Share this post Link to post Share on other sites
BoomBoomSate 10 Posted July 21, 2009 Alternative solution: use this: command forEachMember team; !?! http://community.bistudio.com/wiki/forEachMember ---- http://community.bistudio.com/wiki/Scripting_Commands_by_Functionality Share this post Link to post Share on other sites
rocket 9 Posted July 22, 2009 Alternative solution:use this: command forEachMember team; !?! http://community.bistudio.com/wiki/forEachMember ---- http://community.bistudio.com/wiki/Scripting_Commands_by_Functionality Ooooh. Nice find, hadn't seen that command. Share this post Link to post Share on other sites