Hi ppl,
If i understood your request, youve got:
- Different forts, different MG positions.
- All the gunners of all the MG grouped, so they knowabout the same enemies...
- You want a replace gunner script, so if a gunner is killed and the MG is alive, another comes and mans the MG
- You want to keep that "backstage" of gunners as safe as possible, at least while they are waiting to be called to get into the MG.
Well, heres my suggestion. The solution is a bit a la CoD, but could improve your mission (Making ArmA more "gamey" Wolfrug
- In each fort, place a little building (maybe a Tent) so the new units will appear from there.
- Make a script that checks if the gunner is alive as you did.
- You can place at safe distance the units you want and after making a check if the gunner is alive, Setpos the new unit (kinda teleporting) in the building position, so the player cannot see him teleporting (make sure about it)
- Or, if you wish, I suggest to use createUnit instead, so you can directly provide infinite gunners till the MG is dead (kinda CoD)
- I suggest not to place the gun very close to that respawn point so the player has an oportunity to kill the gunner before he enters the MG (more CoD)
- In the script, make the unit join the group of gunners as soon as the gunner is into the MG
- Another suggestion, when the player reaches some distance to the respawn / teleporting points, interrupt the script.
If you really need the details about scripting that, im working on one, but is unfinished...