BIS fnc PIP: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| *(arg|eff|mp|serverExec|gr[0-9]) *= *(.*) * *\|([^=]{12})" to "|$1=$2 |descr=$3") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 1: | Line 1: | ||
{{RV|type=function | {{RV|type=function | ||
| tkoh | |game1= tkoh | ||
|1.00 | |version1= 1.00 | ||
|game2= arma3 | |game2= arma3 | ||
Line 11: | Line 11: | ||
|descr= Displays Picture in Picture. | |descr= Displays Picture in Picture. | ||
|s1= | |s1= [renderTarget, cameraParams, (vehicle, replace)] call [[BIS_fnc_PIP]] | ||
|p1= '''renderTarget''': [[String]] - render target | |p1= '''renderTarget''': [[String]] - render target | ||
Line 26: | Line 26: | ||
|r1=[[Object]] - camera | |r1=[[Object]] - camera | ||
|x1= <code>["rendertarget0",<nowiki>[</nowiki>[heli1,heli1 | |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> | ||
|seealso= | |||
}} | }} | ||
Revision as of 23:52, 13 June 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