kayzee Posted February 13, 2016 Report Share Posted February 13, 2016 [[x,y,z],0,1000,10,0,25,0] call BIS_fnc_findSafePos; could anyone explain what the 10,0,25,0 means or represents in this.. Any help will b much appreciated Link to comment Share on other sites More sharing options...
0 LunatikCH Posted February 13, 2016 Report Share Posted February 13, 2016 Quote /* File: findSafePos.sqf Description: Function to retrieve and dynamic position in the world according to several parameters. Parameter(s): _this select 0: center position (Array) Note: passing [] (empty Array), the world's safePositionAnchor entry will be used. _this select 1: minimum distance from the center position (Number) _this select 2: maximum distance from the center position (Number) Note: passing -1, the world's safePositionRadius entry will be used. _this select 3: minimum distance from the nearest object (Number) _this select 4: water mode (Number) 0: cannot be in water 1: can either be in water or not 2: must be in water _this select 5: maximum terrain gradient (average altitude difference in meters - Number) _this select 6: shore mode (Number): 0: does not have to be at a shore 1: must be at a shore _this select 7: (optional) blacklist (Array of Arrays): (_this select 7) select X: Top-left and bottom-right coordinates of blacklisted area (Array) _this select 8: (optional) default positions (Array of Arrays): (_this select 8) select 0: default position on land (Array) (_this select 8) select 1: default position on water (Array) Returns: Coordinate array with a position solution. TODO: * Maybe allow passing several combinations of position, min and max dist ... so that you can avoid several things? * Interpretation of minDist / maxDist is wrong. It's not true distance that is used. Too bad? */ 2 klicks in google did it... Link to comment Share on other sites More sharing options...
0 kayzee Posted February 14, 2016 Author Report Share Posted February 14, 2016 10 hours ago, LunatikCH said: 2 klicks in google did it... I figured this after ur I posted and bit more into detail thanks a lot tho for the reply Link to comment Share on other sites More sharing options...
Question
kayzee
[[x,y,z],0,1000,10,0,25,0] call BIS_fnc_findSafePos;
could anyone explain what the 10,0,25,0 means or represents in this.. Any help will b much appreciated
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now