Jump to content
Naiss

AI random spawn inside a marker

Recommended Posts

How would i make it so AI's spawn inside a marker that's a circle?

in random areas in side the circle

Share this post


Link to post
Share on other sites
_mkr = "MarkerName";
_pos = getMarkerpos _mkr;
_rad = getMarkerSize _mkr;
_spawnPos = [_pos, 1, (_rad select 0), 2, 0, 30, 0, [],[_pos],[]] call BIS_fnc_findSafePos;
_enemygrp = [_spawnPos, East,(configFile >> "CfgGroups" >> "East" >> "OPF_F" >> "Infantry" >> "OIA_InfSquad"),[],[],[],[],[],180] call BIS_fnc_spawnGroup;

Not tested but should work.

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

×