BIS fnc PIP: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "|= |p3=" to "|Parameter2= |p3=") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(32 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=function | ||
| | |game1= tkoh | ||
|version1= 1.00 | |||
| | |game2= arma3 | ||
|version2= 0.50 | |||
| | |gr1= GUI | ||
| | |descr= Displays Picture in Picture. | ||
| | |s1= [renderTarget, cameraParams, vehicle, replace] call [[BIS_fnc_PIP]] | ||
| | |p1= renderTarget: [[String]] - render target | ||
| [[Object]] - camera | |p2= cameraParams: [[Object]] or [[Array]] | ||
* [[Object]] - existing camera | |||
* [[Array]] - camera params in format [position, target]: | |||
| | ** position: [[Array]] in format [[Position#Introduction|Position3D]] or [[attachTo]] [object, position] | ||
** 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") | ||
| | |p4= replace: [[Boolean]] - (Optional, default [[true]]) true to replace existing PIP on same target | ||
|r1= [[Object]] - camera | |||
< | |x1= <sqf>["rendertarget0", [heli1, heli1 selectionPosition "slingload0"], cargo1], heli1, false] call BIS_fnc_PIP;</sqf> | ||
< | |||
< | |x2= <sqf>["rendertarget0", _myCamera] call BIS_fnc_PIP;</sqf> | ||
</ | |||
|seealso= [[isPiPEnabled]] | |||
}} | |||
[[ | |||
Latest revision as of 19:04, 5 May 2022
Description
Syntax
- Syntax:
- [renderTarget, cameraParams, vehicle, replace] call BIS_fnc_PIP
- Parameters:
- renderTarget: String - render target
- cameraParams: Object or Array
- 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: Object - (Optional) helicopter 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:
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