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

Create task/objective at random list of pre-placed markers

Recommended Posts

Hi all,

I'm working on this,

fn_findMissionSpot = {

private ["_mapCenter"];
_mapCenter = getArray (configFile >> "CfgWorlds" >> worldName >> "centerPosition");
[_mapCenter, random 4000, random 360, false] call SHK_pos;

};

But I want to change the function for him to take the location of a marker list pre-placed in the editor,

Maybe so?

startarea = ["town1","town2","town3","town4"] call BIS_fnc_selectRandom;

taskPos = getMarkerPos startarea;

publicVariable "taskPos";

greetings and thanks.

Share this post


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

×