Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
HaZZarD

Dynamic enemy Spawn/Patrolling Module ?

Recommended Posts

I found this interesting video on youtube

this was really the simple way I was searching for to populate the enemy tow I have in my mission but then I relalized this module is no more avaible

do it changed name , where can I find it ?

if the module is no more avaible , how can I have the same effect in filling an area with a random number of soldiers and them doing random patrols ?

I also need the soldiers to not respawn when you kill them

thanks all

Share this post


Link to post
Share on other sites

after you kill AI they never respawn. Anyways, heres something that would have the same effect. Just put it in init.sqf and edit anything in the code you need to.

		for "_i" from 0 to 5 do  
	{
		_randomPos = [[[getPos yourTOWobjectnamehere,distancefromTOWtolook]],["water","out"]] call BIS_fnc_randomPos; // pick random position around the TOW
		_spawnGroup = [_randomPos, EAST, (configfile >> "CfgGroups" >> "East" >> "OPF_F" >> "Infantry" >> "OIA_InfTeam")] call BIS_fnc_spawnGroup; // spawn the group
		nul = [_spawnGroup,getpos yourcenterobjecthere, patroldistance] call BIS_fnc_taskPatrol; // make them patrol
	};

You can edit the second number up at the top of it and that will change the number of groups it spawns. Rest of it should explain itself.

Share this post


Link to post
Share on other sites

@austin_medic thanks mate I'll try it out

between is there a way , like the original module in the video did , to chose between spawning infantry , mechanized infantry or armour ?

I' am not and expert of the editor and I really would like to have a versatile system where I can chose what kind of units spawn and where I can use a trigger or a marker for the spawning area .

Is really useful to me to have a marker or trigger to delimit the area where you want the spawn to happen because in that way I can really give it the precise shape I need , like spawning along a road or around two precise builds etc

so in the end , maybe I' am asking too much :P but I would really like a spawn system where I can use custom shape for the spawn area (trigger , marker) and where I can chose what kind of unit to spawn .

all this and the rest very random so that I can have lot of replayability

well hope to find it :)

Edited by HaZZarD

Share this post


Link to post
Share on other sites
Sign in to follow this  

×