Is there anyway to create a squad template and then use “UPSMON spawn module†in a trigger or even a script to give the newly spawned squad a name.
Like for example a spawned squad named “fire_1=group this;â€, then from another trigger the next squad named “fire_2=group this;†and so on.
When the named squad is killed I can then use another trigger, with the Condition: ({alive _x} count units fire_1) < 1. To be used for other purposes.
The group name needs to be in the groupleaders Init, but I can’t figure out how, or if it is even possible to do this.
I have searched high and low though forum after forum with little to no luck, any help or direction to look would be very much appreciated.
Thanks,
Edit - OK making progress.....
From a trigger, I can now spawn a group of Optfor on a marker, give the group a name (and have them keep it), then assign them to move to and patrol another marker area with UPSMON.
Example of spawning a Fire Team, I’m using a trigger for this.
Code:
[TABLE=class: outer_border, width: 1100, align: left]
[TR]
[TD]Shape: whatever size needed for application
Activation: Blufor, Once, Present
Condition: this
On Act. fire_1= createGroup East; fire_1 = [getmarkerpos "spawn_fire_1", EAST, ["O_Soldier_TL_F","O_Soldier_AR_F","O_Soldier_GL_F","O_Soldier_F"]] call BIS_fnc_spawnGroup; null = [fire_1,"fire_1_patrol","move","delete:",200] execVM "scripts\upsmon.sqf";[/TD]
[/TR]
[/TABLE]
So when squad fire_1 are dead another team named fire_2 will spawn and come from another direction to patrol the marker I have placed. I created another trigger with the
Code:
[TABLE=class: outer_border, width: 1100, align: left]
[TR]
[TD]Shape: 0,0,0
Activation: None
Condition: ({alive _x} count units fire_1) < 1
On Act. fire_2 = createGroup East; fire_2 = [getmarkerpos "spawn_fire_2", EAST, ["O_Soldier_TL_F","O_Soldier_AR_F","O_Soldier_GL_F","O_Soldier_lite_F"]] call BIS_fnc_spawnGroup; null = [fire_2,"fire_1_patrol","move","delete:",200] execVM "scripts\upsmon.sqf";[/TD]
[/TR]
[/TABLE]
I still can’t figure out how to name a spawned squad from template yet, however ugly the above method is, it will have to work for now, until someone can show me a better way to do it.