Advertisement
Faguss

Shortcut script for changing viewdistance

Feb 20th, 2019
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. 0.02 exec "..\fwatch\data\InputMulti.sqs"
  2. @Format ["%1",count FWATCH_INPUT_MULTI] != "scalar"
  3.  
  4. _pressed = []
  5. ["FLIB_INKEYS"] call preProcessFile "..\fwatch\data\InitFLib.sqf"
  6.  
  7. _change = {loadFile Format [":mem setgraphics viewdistance:%1 landscapedistance:%1 objectsdistance:%1 shadowsdistance:%1 maxobjects:%1", _this]}
  8.  
  9.  
  10. #Loop
  11. ~0.02
  12. _keys = FWATCH_INPUT_MULTI select 0
  13. ? "1" call FLIB_INKEYS : 5000 call _change
  14. ? "2" call FLIB_INKEYS : 10000 call _change
  15. ? "3" call FLIB_INKEYS : 15000 call _change
  16. ? "4" call FLIB_INKEYS : 20000 call _change
  17. goto "Loop"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement