Robustcolor 30 Posted November 2, 2019 Hi, does setObjectViewDistance command work in a dedicated server for players and JIP? I'm trying to set the ObjectViewdistance to match the ViewDistance on my server, 50 is for ShadowDistance. Is this a correct way of doing this? Initserver.sqf _viewDistance = "ViewDistance" call BIS_fnc_getParamValue; //setViewDistance _viewDistance; Not using this since the viewdistance already adjusts from description. setObjectViewDistance [_viewDistance,50]; This is the value i'm catching with my getParamValue #define VIEW_DISTANCE_MIN 150 #define VIEW_DISTANCE_MAX 1000 #define VIEW_DISTANCE_DEFAULT 830 #include "Params\paramViewDistance.inc" Share this post Link to post Share on other sites
killzone_kid 1326 Posted November 3, 2019 13 hours ago, Robustcolor said: Is this a correct way of doing this? Does this give you desired outcome? Share this post Link to post Share on other sites
Robustcolor 30 Posted November 3, 2019 1 hour ago, killzone_kid said: Does this give you desired outcome? As hosting local, yes. Not sure if it works for JIP players. Share this post Link to post Share on other sites
killzone_kid 1326 Posted November 3, 2019 1 hour ago, Robustcolor said: Not sure if it works for JIP players. Why don’t you test it? You can launch another client by double clicking directly onto desired arma3 executable in main directory Share this post Link to post Share on other sites
Robustcolor 30 Posted November 3, 2019 4 hours ago, killzone_kid said: Why don’t you test it? You can launch another client by double clicking directly onto desired arma3 executable in main directory Really? I'll try it. Share this post Link to post Share on other sites
killzone_kid 1326 Posted November 3, 2019 13 minutes ago, Robustcolor said: Really? I'll try it. To connect go to ingame server browser-> direct connection-> ip 127.0.0.1 port 2302 1 Share this post Link to post Share on other sites
Robustcolor 30 Posted November 3, 2019 12 minutes ago, killzone_kid said: To connect go to ingame server browser-> direct connection-> ip 127.0.0.1 port 2302 Thanks @killzone_kid Share this post Link to post Share on other sites
Robustcolor 30 Posted November 3, 2019 Alright, got it to work. Had to put the codes inside initPlayerLocal.sqf instead of initServer.sqf, otherwise JIP players don't see it. _terrainGrid = "grass" call BIS_fnc_getParamValue; setTerrainGrid _terrainGrid; _viewDistance = "ViewDistance" call BIS_fnc_getParamValue; setObjectViewDistance [_viewDistance,50]; Share this post Link to post Share on other sites