BIS fnc PIP: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl>" to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| TKOH | | TKOH | ||
|1.00 | |1.00 | ||
|gr1= GUI | |gr1= GUI | ||
| Displays Picture in Picture. | | Displays Picture in Picture. | ||
| [renderTarget, cameraParams, (vehicle, replace)] call BIS_fnc_PIP; | | [renderTarget, cameraParams, (vehicle, replace)] call BIS_fnc_PIP; | ||
|p1= '''renderTarget''': [[String]] - render target | |p1= '''renderTarget''': [[String]] - render target | ||
|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]]) | <br>'''target''': [[Object]] or [[Array]] in format [[Position3D]] (same as [[camPrepareTarget]]) | ||
|p3= '''vehicle''' (Optional): [[Object]] - helicopter to which action is added (to memory point "action_screen1") | |p3= '''vehicle''' (Optional): [[Object]] - helicopter to which action is added (to memory point "action_screen1") | ||
|p4= '''replace''' (Optional): [[Boolean]] - true to replace existing PIP on same target (default: true) | |p4= '''replace''' (Optional): [[Boolean]] - true to replace existing PIP on same target (default: true) | ||
| [[Object]] - camera | | [[Object]] - camera | ||
|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> | ||
|x2= <code>["rendertarget0",_myCamera] call BIS_fnc_PIP;</code> | |x2= <code>["rendertarget0",_myCamera] call BIS_fnc_PIP;</code> | ||
| | | | ||
}} | }} |
Revision as of 22:23, 17 January 2021
Description
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