{"name":"diag_captureFrame","operator":null,"title":"diag captureFrame","type":"command","url":"https://community.bistudio.com/wiki/diag_captureFrame","revid":379089,"updated":"2026-09-27T09:45:01Z","groups":["Diagnostic","Performance Profiling"],"status":"ok","replaced_by":[],"games":[{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.63"},{"game":"arma3","name":"Arma 3","version":"1.00"}],"since":{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.63"},"arma3_since":"1.00","branch":"diag prof","locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"This command starts counting frames from the moment it is executed and when the count reaches the number passed as param, the current frame is captured and captured data UI dialog appears, similar to diag_captureSlowFrame. This can also be executed on a dedicated Server and because a Server has no UI it will behave like diag_captureFrameToFile.\n\n> [!IMPORTANT]\n> BattlEye's RCON variant of this command is **#captureFrame**","syntaxes":[{"syntax":"diag_captureFrame frame","since":null,"effect":null,"exec":null,"params":[{"name":"frame","type":"Number","optional":false,"default":null,"description":"next n-th frame to be captured","types":["Number"],"since":null,"text":"frame: Number - next n-th frame to be captured"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"unary","operator":null,"left":null,"right":{"text":"frame","types":["Number"]}}],"examples":[{"text":"```sqf\ndiag_captureFrame 1; // capture the first frame after command execution\n```","code":["diag_captureFrame 1; // capture the first frame after command execution"]},{"text":"```sqf\ndiag_captureFrame 24; // capture 24th frame after command execution\n```","code":["diag_captureFrame 24; // capture 24th frame after command execution"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["Arma 3: Diagnostics Exe","Performance Profiling","Arma 3: Cheats","Multiplayer Server Commands","diag_captureFrameToFile","diag_captureSlowFrame","diag logSlowFrame","logEntities","exportJIPMessages"],"notes":[],"categories":["Arma 2: Operation Arrowhead: New Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 3: Scripting Commands","Arma 3: Scripting Commands: Diagnostic Branch","Arma 3: Scripting Commands: Profiling Branch","Command Group: Diagnostic","Command Group: Performance Profiling","Introduced with Arma 2: Operation Arrowhead version 1.63","Scripting Commands"]}