Search the Community
Showing results for tags 'depth'.
Found 2 results
-
Hello everyone. Does anyone know a reliable way for getting the water depth measured from the water surface at a given position? The only command I know is: selectBestPlaces [position player, 1, "waterDepth", 1, 1]; Which is a bit slow for my use (around 0.035 ms, IIRC) and not 100% reliable (sometimes it returns empty even on water) Note that the water may be "inland" (not sea water) so the general conception: _waterDepth = -(getTerrainHeightASL _somePos); is wrong.
-
Guys I need help with setting position of object follownig array of coordinates but including negative Z. https://forums.bohemia.net/forums/topic/153382-shk_pos/ I found this but links are broken and found this ; _mystartpositions = [[0,0,0],[5234,7345,0]]; _rndstartposition = _mystartpositions call BIS_fnc_selectRandom; object1 setpos _rndstartposition; but code only place object on those two locations randomly. Eden placement radius is useless because it always place object on surface. I need this: -moored naval mine to be randomly placed in specific area on the sea (could be marker) but also to randomize depth (z axis). For now, I only manage to place mine randomly X and Y but Z is always the same distance from the bottom so divers alsway know to dont search for mine between surface and bottom -40m. (40m is a chain of naval mine which is always placed on bottom.) - That is what I need! Z randomized axis so the mine could be on any depth between bottom and surface. Thanks in advance