Hey gen I found this in the bis forum not tried it yet
It requires a gamelogic, a unit with waypoints what executes the script like this;
Code Sample
teamW1=group this; ["west",teamW1,g2,2] exec "spawnw.sqs";deletevehicle this
Code Sample
; *****************************************************
; ** Operation Flashpoint Script File
; *****************************************************
~(random 1) + 1
_side = _this select 0
_team = _this select 1
_spawnpoint = _this select 2
_min = _this select 3
? (_side == "west"):goto "loop2"
~(random 1) + 1
#loop1
~12
? (count units _team > _min):goto "loop1"
"WH_SQDLDR2" createUnit [_spawnpoint,_team,"man1=this",0.5,"CORPORAL"]
~0.5
"WH_Panzerschreck1" createUnit [_spawnpoint,_team,"man2=this",0.3,"PRIVATE"]
~0.5
"WH_Schutze6" createUnit [_spawnpoint,_team,"man3=this",0.3,"PRIVATE"]
~0.5
"WH_Schutze1" createUnit [_spawnpoint,_team,"man4=this",0.3,"PRIVATE"]
~0.5
"WH_Schutze2" createUnit [_spawnpoint,_team,"man5=this",0.3,"PRIVATE"]
~0.5
"WH_Schutze1" createUnit [_spawnpoint,_team,"man6=this",0.3,"PRIVATE"]
~0.5
"WH_Schutze3" createUnit [_spawnpoint,_team,"man7=this",0.3,"PRIVATE"]
~0.5
"WH_Schutze4" createUnit [_spawnpoint,_team,"man8=this",0.3,"PRIVATE"]
~0.5
"WH_Schutze5" createUnit [_spawnpoint,_team,"man9=this",0.3,"PRIVATE"]
~0.5
"WH_LMGunner" createUnit [_spawnpoint,_team,"man10=this",0.3,"PRIVATE"]
~0.5
"WH_LMAmmo" createUnit [_spawnpoint,_team,"man11=this",0.3,"PRIVATE"]
~0.5
"WH_Medic" createUnit [_spawnpoint,_team,"man12=this",0.3,"PRIVATE"]
~0.5
("_x addeventhandler [ {killed} , {_this exec {killbody.sqs}} ] " foreach units _team)
~0.5
;allow for easier enemies
;("_x setdammage -1" foreach units _team)
("_x allowfleeing 0.5" foreach units _team)
hint "GERMAN created"
goto "loop1"
;======================west===================================
#loop2
~10
? (count units _team > _min):goto "loop2"
"82_ABNCO2" createUnit [_spawnpoint,_team,"wman1=this",0.5,"CORPORAL"]
~0.5
"82_ABMGAMMO" createUnit [_spawnpoint,_team,"wman2=this",0.3,"PRIVATE"]
~0.5
"82_ABMGUN" createUnit [_spawnpoint,_team,"wman3=this",0.3,"PRIVATE"]
~0.5
"82_ABBLAUNCHER" createUnit [_spawnpoint,_team,"wman4=this",0.3,"PRIVATE"]
~0.5
"82_ABRIFLEMAN1" createUnit [_spawnpoint,_team,"wman5=this",0.3,"PRIVATE"]
~0.5
"82_ABRIFLEMAN1" createUnit [_spawnpoint,_team,"wman6=this",0.3,"PRIVATE"]
~0.5
"82_ABRIFLEMAN2" createUnit [_spawnpoint,_team,"wan7=this",0.3,"PRIVATE"]
~0.5
"82_ABRIFLEMAN2" createUnit [_spawnpoint,_team,"wan8=this",0.3,"PRIVATE"]
~0.5
"82_ABRIFLEMAN3" createUnit [_spawnpoint,_team,"wan9=this",0.3,"PRIVATE"]
~0.5
"82_ABRIFLEMAN3" createUnit [_spawnpoint,_team,"wan10=this",0.3,"PRIVATE"]
~0.5
"82_ABBAR" createUnit [_spawnpoint,_team,"wan11=this",0.3,"PRIVATE"]
~0.5
"82_ABMEDIC" createUnit [_spawnpoint,_team,"wan12=this",0.3,"PRIVATE"]
~0.5
("_x addeventhandler [ {killed} , {_this exec {killbody.sqs}} ] " foreach units _team)
~0.5
("_x allowfleeing 0.5" foreach units _team)
;("_x setdammage -1" foreach units _team)
hint "USA created"
goto "loop2"
and killbody.sqs
Code Sample
_unit = _this select 0
_unit removealleventhandlers "killed"
~60
deletevehicle _unit
exit
Simple, and they keep comming over and over again..