I'm using bits of code to spawn scenery (then possibly other things) at defined locations, but at random. Currently it's using code from a couple of other mods and working fine when random selecting safe positions via BIS_fnc_findsafePos. I'd like to modify it so that picks from an array of co-ords instead of using findsafePos. Ran into trouble at this point. Anyone know how to correctly set this up?
waitUntil{!isNil "BIS_fnc_selectRandom"};
_position = RoadList call BIS_fnc_selectRandom;
_position = _position modelToWorld [0,0,0];
waitUntil{!isNil "BIS_fnc_findSafePos"};
_position = [_position,5,40,5,0,5,0] call BIS_fnc_findSafePos;
Tried many times already but no joy.
Thanks

