BIS fnc PIP: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= |p3=" to "|Parameter2= |p3=")
m (Text replacement - "<br />" to "<br>")
(3 intermediate revisions by the same user not shown)
Line 12: Line 12:
| [renderTarget, cameraParams, (vehicle, replace)] call bis_fnc_PIP; |SYNTAX=
| [renderTarget, cameraParams, (vehicle, replace)] call bis_fnc_PIP; |SYNTAX=


|p1= '''renderTarget''': [[String]] - render target |=
|p1= '''renderTarget''': [[String]] - render target |Parameter1=
|p2= '''cameraParams''':
|p2= '''cameraParams''':
<br />[[Object]] - existing camera
<br>[[Object]] - existing camera
<br />[[Array]] - camera params in format [position,target].
<br>[[Array]] - camera params in format [position,target].
<br />'''position''': [[Array]] in format [[Position3D]] or [[attachTo]] [object,position]
<br>'''position''': [[Array]] in format [[Position3D]] or [[attachTo]] [object,position]
<br />'''target''': [[Object]] or [[Array]] in format [[Position3D]] (same as [[camPrepareTarget]]) |Parameter2=
<br>'''target''': [[Object]] or [[Array]] in format [[Position3D]] (same as [[camPrepareTarget]]) |Parameter2=
 
|p3= '''vehicle''' (Optional): [[Object]] - helicopter to which action is added (to memory point "action_screen1") |PARAMETER3=


|p3= '''vehicle''' (Optional): [[Object]] - helicopter to which action is added (to memory point "action_screen1") |=
|p4= '''vehicle''' (Optional): [[Boolean]] - true to replace existing PIP on same target (default: true) |=
|p4= '''vehicle''' (Optional): [[Boolean]] - true to replace existing PIP on same target (default: true) |=


Line 25: Line 26:
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>["rendertarget0",<nowiki>[</nowiki>[heli1,heli1 selectionposition "slingload0"],cargo1],heli1,false] call BIS_fnc_PIP;</code> |=
|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> |=
|x2= <code>["rendertarget0",_myCamera] call BIS_fnc_PIP;</code> |=

Revision as of 13:01, 19 March 2020

Hover & click on the images for description

Description

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

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")
vehicle (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