JeckoFR 10 Posted May 15, 2013 Hello, I'am french so, sorry for my basic english. I need the commands to disable 3rd person, weapons cursor, and the commands to force viewdistance and grass on my mission. Thanks Share this post Link to post Share on other sites
mindstorm 8 Posted May 15, 2013 This is not done by means of script, it's a server dificulty level thing: http://forums.bistudio.com/showthread.php?147537-Tutorial-How-to-run-ArmA3-server-on-a-dedicated-server Check the part: ****.Arma3AlphaProfile It defines a couple of difficulty levels. Share this post Link to post Share on other sites
killzone_kid 1330 Posted May 15, 2013 setviewdistance Share this post Link to post Share on other sites
JeckoFR 10 Posted May 15, 2013 I doesn't have a server, but, i found a script with can force the 1st person off vehicle, but it's possible to switch between 1st and 3rd in vehicle, in a trigger Share this post Link to post Share on other sites
killzone_kid 1330 Posted May 15, 2013 You don't need server. From main menu click options -> game -> difficulty Share this post Link to post Share on other sites
JeckoFR 10 Posted May 15, 2013 Every body can change the difficulty, i play in multiplayer with this mission Share this post Link to post Share on other sites
bangabob 42 Posted May 15, 2013 while {true} do {if(vehicle player != player) then {player switchCamera "Internal";};sleep 0.5;}; Share this post Link to post Share on other sites
holo89 10 Posted May 15, 2013 BangaBob, I think he wanted the opposite, when in vehicle, be able to switch from 1st to 3rd. I may be wrong but I think you have to do the if(vehicle player = player) then... force internal thanks for this code, I was curious also to know a way to programmatically do it! regards, Holo Share this post Link to post Share on other sites
509 10 Posted May 16, 2013 Google for "3rdperson.fsm" for another way to do it. Share this post Link to post Share on other sites
1para{god-father} 105 Posted May 16, 2013 This is what we use, forces no 3rd on player but allows any vehicle to have it , you can chnage as you see fit Params_CameraView=1; // could set in decription but no need for this mission // ---------------------------------------------------------------------------- // MAIN ROUTINE // ---------------------------------------------------------------------------- // no loop need, if third person view is not available anyway if (difficultyEnabled "3rdPersonView") then { switch (Params_CameraView) do { case 1://vehicles only { while {(true)} do { if (cameraView == "External") then { if ((vehicle player) == player) then { player switchCamera "Internal"; }; }; sleep 0.1; }; }; case 2://infantry only { while {(true)} do { if (cameraView == "External") then { if ((vehicle player) != player) then { (vehicle player) switchCamera "Internal"; }; }; sleep 0.1; }; }; case 3://disabled { while {(true)} do { if (cameraView == "External") then { if ((vehicle player) == cameraOn) then { (vehicle player) switchCamera "Internal"; }; }; sleep 0.1; }; }; }; }; Share this post Link to post Share on other sites
SavageCDN 231 Posted May 16, 2013 Hello, I'am french so, sorry for my basic english. I need the commands to force viewdistance and grass on my mission.Thanks As Killzone mentioned: setViewDistance = 1500 http://community.bistudio.com/wiki/setViewDistance For terrain detail: setTerrainGrid = 50 http://community.bistudio.com/wiki/setTerrainGrid And your English is fine :p Share this post Link to post Share on other sites
subminuentisch 10 Posted May 10, 2014 this script prevents 3rd person as long as the player is outside of a vehicle and is rather small codewise.Bangabobs script prevents people from using their ironsights since its always forcing the internal view. []spawn{ while {true} do { waitUntil{ sleep 5; //used to save recources and allows for a quick "stylecheck" adjust as you see fit cameraOn == player && cameraView == "External" }; player switchCamera "Internal"; }; }; Share this post Link to post Share on other sites
MANTIA 55 Posted December 26, 2014 this script prevents 3rd person as long as the player is outside of a vehicle and is rather small codewise.Bangabobs script prevents people from using their ironsights since its always forcing the internal view. []spawn{ while {true} do { waitUntil{ sleep 5; //used to save recources and allows for a quick "stylecheck" adjust as you see fit cameraOn == player && cameraView == "External" }; player switchCamera "Internal"; }; }; how would I call this script? via mission init or trigger? Any downside on performance or anything if its checking this for each player every 5 seconds? thanks Share this post Link to post Share on other sites
das attorney 858 Posted December 26, 2014 (edited) You could put it in the init.sqf and wrap it in a if (hasInterface) then {... structure. (you don't want a DS or HC's to run this but you do for a locally hosted server, MP client or SP) EDIT: Something like this: if (hasInterface)then { [] spawn { while {true} do { waitUntil{ sleep 5; cameraOn isEqualTo player and {cameraView == "External"} }; player switchCamera "Internal"; }; }; }; You can speed it up a bit by using isEqualTo instead of == in the cameraView statement. I was reticent to change it as I wasn't sure if "External" was in the right case. I guess you could do some cameraView isEqualTo toLower "external" check, but it's prob better to check the string and make sure the upper and lower cases are proper. (if you care about making it as quiuck as can be that is). Edited December 26, 2014 by Das Attorney Share this post Link to post Share on other sites