BIS fnc PIP: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (captial BIS)
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Function|Comments=
{{Function|Comments=
____________________________________________________________________________________________


| TKOH |Game name=
| TKOH |Game name=
Line 7: Line 6:


|gr1= GUI |GROUP1=
|gr1= GUI |GROUP1=
____________________________________________________________________________________________


| Displays Picture in Picture. |DESCRIPTION=
| Displays Picture in Picture. |DESCRIPTION=
____________________________________________________________________________________________


| [renderTarget, cameraParams, (vehicle, replace)] call BIS_fnc_PIP; |SYNTAX=
| [renderTarget, cameraParams, (vehicle, replace)] call BIS_fnc_PIP; |SYNTAX=
Line 26: Line 23:


| [[Object]] - camera |RETURNVALUE=
| [[Object]] - camera |RETURNVALUE=
____________________________________________________________________________________________
   
   
|x1= <code>["rendertarget0",<nowiki>[</nowiki>[heli1,heli1 selectionposition "slingload0"],cargo1],heli1,false] call BIS_fnc_PIP;</code> |Example1=
|x1= <code>["rendertarget0",<nowiki>[</nowiki>[heli1,heli1 selectionposition "slingload0"],cargo1],heli1,false] call BIS_fnc_PIP;</code> |Example1=


|x2= <code>["rendertarget0",_myCamera] call BIS_fnc_PIP;</code> |EXAMPLE2=
|x2= <code>["rendertarget0",_myCamera] call BIS_fnc_PIP;</code> |EXAMPLE2=
____________________________________________________________________________________________


| |SEEALSO=
| |SEEALSO=

Revision as of 22:43, 16 January 2021

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 - existing camera
Array - camera params in format [position,target].
position: Array in format Position3D or attachTo [object,position]
target: Object or Array in format Position3D (same as camPrepareTarget)
vehicle (Optional): Object - helicopter to which action is added (to memory point "action_screen1")
replace (Optional): Boolean - true to replace existing PIP on same target (default: true)
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;

Additional Information

See also:
See also needed

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

Notes

Bottom Section