With a function of mine, I tested with:
for "_i" from 1 to 15 do
{
[format["test %1", _i]] spawn function;
};
The function shows a hint, but the order of the numbers would be scrambled. I believe this is because spawn runs the script in parallel. When I added sleep 0.1, the numbers showed in order. Is there a way to ensure the function spits everything out in the correct order?