Skip to content

Instantly share code, notes, and snippets.

@johnsmm
Created March 30, 2017 18:40
Show Gist options
  • Save johnsmm/47f88437b3f02a920cb0e23e0dc4a4a6 to your computer and use it in GitHub Desktop.
Save johnsmm/47f88437b3f02a920cb0e23e0dc4a4a6 to your computer and use it in GitHub Desktop.
for "_i" from 1 to 1000 do {
_position = [getPos player, 350, "(0.8 * meadow) * (1 - sea) * (1 - hills) * (1 - houses) * (1 - forest) * (1 - trees)", 10, 6, 0.7, true] call CTI_CO_FNC_GetRandomBestPlaces;
_marker = createMarkerLocal [(format ["safe_pos_%1", ([0, 400] call BIS_fnc_randomInt)]), _position];
_marker setMarkerShapeLocal "ICON";
_marker setMarkerTypeLocal "hd_dot";
_marker setMarkerColor "ColorRed";
};
@johnsmm
Copy link
Author

johnsmm commented Mar 30, 2017

for "_i" from 1 to 1000 do {
  _position = [getPos player, 25, CTI_TOWNS_RESISTANCE_SPAWN_RANGE, _tries] call CTI_CO_FNC_GetRandomPosition;
  _position = [_position, 80, "meadow", 8, 5, 0.1, true] call CTI_CO_FNC_GetRandomBestPlaces;
  _marker = createMarkerLocal [(format ["safe_pos_%1", ([0, 400] call BIS_fnc_randomInt)]), _position];
  _marker setMarkerShapeLocal "ICON";
  _marker setMarkerTypeLocal "hd_dot";
  _marker setMarkerColor "ColorRed";
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment