Hi,
I'm using the creat units scripts. I am creating"respawning" AI controlled groups on battle field.
I just want to add "stuff" in their init field, such weapons, dofire this, addface, gear etc .. how do I do that? where does the init field go??
I'm posting the script and I hope someone can show me where to add it.
Thank you very much.
Here is the script:
;begin script
_pos = _this select 0
_grp = _this select 1
"MAF_Officer" createunit [getpos _pos,_grp,"",1,"LIEUTENANT"]
"MAF_SoldierDMG" createunit [getpos _pos,_grp,"",0.8,"SERGEANT"]
"MAF_SoldierWMortar" createunit [getpos _pos,_grp,"",0.8,"CORPORAL"]
"MAF_SoldierDMedic" createunit [getpos _pos,_grp,"",0.8,"CORPORAL"]
"MAF_HeavyGrenadier" createunit [getpos _pos,_grp,"",0.8,"CORPORAL"]
"MAF_SoldierDB" createunit [getpos _pos,_grp,"",0.8,"CORPORAL"]
"MAF_SoldierDB" createunit [getpos _pos,_grp,"",0.8,"CORPORAL"]
"MAF_SoldierDB" createunit [getpos _pos,_grp,"",0.8,"CORPORAL"]
"MAF_SoldierDB" createunit [getpos _pos,_grp,"",0.8,"CORPORAL"]
"MAF_SoldierDB" createunit [getpos _pos,_grp,"",0.8,"CORPORAL"]
"MAF_SoldierDB" createunit [getpos _pos,_grp,"",0.8,"CORPORAL"]
"MAF_SoldierDB" createunit [getpos _pos,_grp,"",0.8,"CORPORAL"]
~1
_units = units _grp
_grp setformation "LINE"
_grp setbehaviour "AWARE"
_grp setcombatmode "GREEN"
"_x allowfleeing 0" foreach _units
#loop
?(("Alive _x" count _units) == 0): "deletevehicle _x" foreach _units; exit
~random(10) + 10
goto "loop"