{"name":"BIS_fnc_PIP","title":"BIS fnc PIP","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_PIP","revid":376142,"updated":"2025-09-03T11:23:11Z","groups":["GUI"],"status":"ok","games":{"tkoh":"1.00","arma3":"0.50"},"since":"tkoh 1.00","arma3_since":"0.50","description":"Displays Picture in Picture.","syntaxes":[{"syntax":"[renderTarget, cameraParams, vehicle, replace] call BIS_fnc_PIP","params":[{"name":"renderTarget","type":"String","description":"render target","type_expr":"String"},{"name":"cameraParams","type":"Object or Array","description":"Object or Array\n\n- Object - existing camera\n- Array - camera params in format [position, target]:\n  - position: Array in format Position3D or attachTo [object, position]\n  - target: Object or Array in format Position3D (same as camPrepareTarget)","type_expr":"Object | Array","text":"cameraParams: Object or Array\n\n- Object - existing camera\n- Array - camera params in format [position, target]:\n  - position: Array in format Position3D or attachTo [object, position]\n  - target: Object or Array in format Position3D (same as camPrepareTarget)"},{"name":"vehicle","type":"Object","optional":true,"description":"vehicle to which action is added (to memory point \"action_screen1\")","type_expr":"Object","text":"vehicle: Object - (Optional) vehicle to which action is added (to memory point \"action_screen1\")"},{"name":"replace","type":"Boolean","optional":true,"default":"true","description":"true to replace existing PIP on same target","type_expr":"Boolean","text":"replace: Boolean - (Optional, default true) true to replace existing PIP on same target"}],"returns":{"type":"Object","type_expr":"Object","description":"camera"}}],"examples":[{"code":["[\"rendertarget0\", [[heli1, heli1 selectionPosition \"slingload0\"], cargo1], heli1, false] call BIS_fnc_PIP;"]},{"code":["[\"rendertarget0\", _myCamera] call BIS_fnc_PIP;"]},{"text":"```sqf\n[\"rendertarget0\"] call BIS_fnc_PIP;    // terminate\n[] call BIS_fnc_PIP;                // terminate \"livefeedrendertarget0\"\n```","code":["[\"rendertarget0\"] call BIS_fnc_PIP;\t// terminate\n[] call BIS_fnc_PIP;\t\t\t\t// terminate \"livefeedrendertarget0\""]}],"see_also":["isPiPEnabled"]}