Jump to content
Sign in to follow this  
epicgoldenwarrior

Random Squad Spawn?

Recommended Posts

I'd look for something to spawn a few random squads (Guerrillas pref) and just have them run around in waypoints, doing their own thing.

I need them to respawn or have other squads spawn randomly.

Don't even need waypoints they just need to move around generally

'dynamic'

anyone know of any scripts?

NOT EOS - I dont want them in towns necessarily.

Hopefully COS is only activated by players, cause I dont want these guys triggering town spawns *-*

Share this post


Link to post
Share on other sites

EOS doesn't have to be located in towns, you can use any marker.

Zenophons framework is really cool. Once in you could use something like


//pick a random number of maximum squad to spawn
_guerReinforcementRandomMax = [3,4] call BIS_fnc_selectRandom;

for "_i" from 1 to _guerReinforcementRandomMax do {

//find a random spawn point for each squad
_guerInfSpawn = [_guerReinforcementPatrolArea,700,700,5,0,150,0] call BIS_fnc_findsafePos;

//spawn in the squad with between 5 and 7 members
_guerInfReinforcement = [_guerInfSpawn, independent, "infantry", [5,7]] call Zen_SpawnInfantry;

//tell that squad to patrol in the marker area
[_guerInfReinforcement,"YourMarkerAreaToBePatrolled",[],0,"normal"] spawn Zen_OrderInfantryPatrol;

};

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×