Jump to content

Infected Camps Locations


Karmafied

Recommended Posts

Currently, in dayz_server/compile/server_spawnInfectedCamps, there is this line:

//Find a position

    for "_j" from 1 to (SEARCH_ATTEMPTS) do
    {
        _position = ((selectBestPlaces [SEARCH_CENTER, SEARCH_RADIUS, SEARCH_EXPRESSION, SEARCH_PRECISION, 1]) select 0) select 0;
        _position set [2, 0];

I would like to set a list of coordinates in which the system can choose from (instead of randomly placing). Would I change that _position line to something like this:

   _position = ((12345,12345,0),(54321,54321,0)) call BIS_fnc_selectRandom 

If not, and I am WAY over my head, then please disregard. It may not be worth your time explaining it to me. :) 

Link to comment
Share on other sites

9 hours ago, Karmafied said:

Currently, in dayz_server/compile/server_spawnInfectedCamps, there is this line:

//Find a position

    for "_j" from 1 to (SEARCH_ATTEMPTS) do
    {
        _position = ((selectBestPlaces [SEARCH_CENTER, SEARCH_RADIUS, SEARCH_EXPRESSION, SEARCH_PRECISION, 1]) select 0) select 0;
        _position set [2, 0];

I would like to set a list of coordinates in which the system can choose from (instead of randomly placing). Would I change that _position line to something like this:

   _position = ((12345,12345,0),(54321,54321,0)) call BIS_fnc_selectRandom 

If not, and I am WAY over my head, then please disregard. It may not be worth your time explaining it to me. :) 

Hey,

That's exactly how you would do it except you need to put that array in the proper format

_position = [[xposition,yposition,zposition],[xposition,yposition,zposition],[xposition,yposition,zposition],[xposition,yposition,zposition]] call BIS_fnc_selectRandom;

Obviously xposition/yposition and zposition are your position arrays

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...