Script issues
When running a mission locally (e.g. testing the mission on your own PC),
you are the server. Therefore, using
isServer in a script will cause anything within that scope to not run. Instead, use
isDedicated - this will run anything within that scope on a
dedicated server only (which I'm guessing is what you want).
Also, as a faster and more efficient method, you should use
createUnit array instead of
createUnit. Like this:
// Slower method
"O_mas_afr_Rebel1_F" createUnit [getMarkerPos "spawnHQ",Rebel_find_wreck,"",0.85, "Private"];
// Faster method
Rebel_find_wreck2 createUnit ["O_mas_afr_Rebel1_F", getMarkerPos "spawnHQ", [], 0, "FORM"];
And if you want to be really clever, why not put the spawning of units in a
for loop with a random unit type every time, like this:
_spawnCount
= 7; // However many you want to spawnfor "_i" from
1 to _spawnCount
do { Rebel_find_wreck createUnit
[format
["O_mas_afr_Rebel%1_F", ceil(random
5)], getMarkerPos
"spawnHQ", [], 0, "FORM"];};Let me know how it goes