tj72 0 Posted January 25, 2007 Ive ben looking around for some example code with the @ready command with search and other places. I know I've seen it and have it some mission scripts on my HD but I cant seem to find. Im trying to get a unit from this piece of code: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">"_x assignascargo Truck1" foreach units Squad1; "[_x] ordergetin true "foreach units Squad1" I want the sqs to tell me when the unit is ready so I can +1 to a check value against the group count and then get the truck moving on its delivery mission when this condition is satisfied. My attempt: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> @ready Foreach units Squad1 :_rdy = _rdy + 1 So this is a particular use for @ if I understand it right. But I would love any basic and general tutorials on it if anyone knows about one because I couldnt find any. Thanks Share this post Link to post Share on other sites