BIS fnc PIP: Difference between revisions

From Bohemia Interactive Community
m (Text replacement - "Position3D" to "Position3D")
m (Fix examples)
 
(2 intermediate revisions by the same user not shown)
Line 21: Line 21:
** target: [[Object]] or [[Array]] in format [[Position#Introduction|Position3D]] (same as [[camPrepareTarget]])
** target: [[Object]] or [[Array]] in format [[Position#Introduction|Position3D]] (same as [[camPrepareTarget]])


|p3= vehicle: [[Object]] - (Optional) helicopter to which action is added (to memory point "action_screen1")
|p3= vehicle: [[Object]] - (Optional) vehicle to which action is added (to memory point "action_screen1")


|p4= replace: [[Boolean]] - (Optional, default [[true]]) true to replace existing PIP on same target
|p4= replace: [[Boolean]] - (Optional, default [[true]]) true to replace existing PIP on same target
Line 27: Line 27:
|r1= [[Object]] - camera
|r1= [[Object]] - camera


|x1= <code>["rendertarget0", [<nowiki/>[heli1, heli1 [[selectionPosition]] "slingload0"], cargo1], heli1, [[false]]] [[call]] [[BIS_fnc_PIP]];</code>
|x1= <sqf>["rendertarget0", [[heli1, heli1 selectionPosition "slingload0"], cargo1], heli1, false] call BIS_fnc_PIP;</sqf>


|x2= <code>["rendertarget0", _myCamera] [[call]] [[BIS_fnc_PIP]];</code>
|x2= <sqf>["rendertarget0", _myCamera] call BIS_fnc_PIP;</sqf>
 
|x3= <sqf>
["rendertarget0"] call BIS_fnc_PIP; // terminate
[] call BIS_fnc_PIP; // terminate "livefeedrendertarget0"
</sqf>


|seealso= [[isPiPEnabled]]
|seealso= [[isPiPEnabled]]
}}
}}

Latest revision as of 13:23, 3 September 2025

Hover & click on the images for description

Description

Description:
Displays Picture in Picture.
Execution:
call
Groups:
GUI

Syntax

Syntax:
[renderTarget, cameraParams, vehicle, replace] call BIS_fnc_PIP
Parameters:
renderTarget: String - render target
cameraParams: Object or Array
vehicle: Object - (Optional) vehicle to which action is added (to memory point "action_screen1")
replace: Boolean - (Optional, default true) true to replace existing PIP on same target
Return Value:
Object - camera

Examples

Example 1:
["rendertarget0", [[heli1, heli1 selectionPosition "slingload0"], cargo1], heli1, false] call BIS_fnc_PIP;
Example 2:
["rendertarget0", _myCamera] call BIS_fnc_PIP;
Example 3:
["rendertarget0"] call BIS_fnc_PIP; // terminate [] call BIS_fnc_PIP; // terminate "livefeedrendertarget0"

Additional Information

See also:
isPiPEnabled

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note