Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // For use with PennyWorth's screenshot extension https://github.com/pennyworth12345/pen_screenshot
- private ["_debug", "_wm", "_cm", "_pos", "_dir", "_posString", "_timeString", "_screenshot", "_path"];
- _debug = false;
- _wm = worldName;
- _cm = get3DENCamera;
- _pos = [round ((getPosASL _cm) select 0), round ((getPosASL _cm) select 1), round ((getPosASL _cm) select 2)];
- _dir = "C:\Arma3\Captures";
- _posString = format ["%1x-%2y-%3z", _pos select 0, _pos select 1, _pos select 2];
- _timeString = format ["%1h-%2m", date select 3, date select 4];
- _screenshot = format ["%1\%2_%3_%4_capture.png", _dir, _wm, _posString, _timeString];
- _path = format ["capture:%1", _screenshot];
- (findDisplay 316000) closeDisplay 316000;
- sleep 0.1;
- "pen_screenshot" callExtension _path;
- if (_debug) then {systemChat ("Captured " + str _screenshot)};
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement