BIS fnc setCuratorCamera: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "(\|p[0-9]+ *= *[^(]+\(Optional(, default[^)]*)\) )P([a-z])" to "$1p$3")
 
(25 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|= Comments
|game1= arma3
____________________________________________________________________________________________
|version1= 1.16


| arma3 |= Game name
|gr1= Curator


|1.16|= Game version
|descr= Move curator camera to a position and direction. Finished when animation ends.
____________________________________________________________________________________________


| <pre>/*
|s1= [camPos, targetPos, time] spawn [[BIS_fnc_setCuratorCamera]]


Description:
|p1= camPos: [[Position]] - (Optional, default [[getPosATL]] [[curatorCamera]]) position, for supported types see [[BIS_fnc_position]]
Move curator camera to a position and direction.
Has to be tun in [[Scheduler#Scheduled_Environment|scheduled environment]]. Finished when animation ends.


Parameter(s):
|p2= targetPos: [[Array]] format [[Vector3D]], [[Position]] or [[Object]] - (Optional, default [[vectorDir]] [[curatorCamera]]) vector dir or target object/position
0 - positon, for supported types see BIS_fnc_position
1: ARRAY - vector dir or target object / position
2: NUMBER - commit time


Returns:
|p3= time: [[Number]] or [[Boolean]] - (Optional, default 0) commit time or [[true]] to calculate time automatically
BOOL
*/


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
|exec= spawn
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_setCuratorCamera]]; --> |= Syntax
|r1= [[Boolean]] [[true]] when done


|p1= |= Parameter 1
|x1= <sqf>[nil, player, 5] spawn BIS_fnc_setCuratorCamera;</sqf>
 
| |= Return value
____________________________________________________________________________________________
 
|x1= <code></code> |=
____________________________________________________________________________________________
 
| |= See also


|seealso= [[Arma 3: Curator]] [[curatorCamera]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Curator|{{uc:setCuratorCamera}}]]
[[Category:Functions|{{uc:setCuratorCamera}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:setCuratorCamera}}]]

Latest revision as of 12:31, 8 November 2023

Hover & click on the images for description

Description

Description:
Move curator camera to a position and direction. Finished when animation ends.
Execution:
spawn
Groups:
Curator

Syntax

Syntax:
[camPos, targetPos, time] spawn BIS_fnc_setCuratorCamera
Parameters:
camPos: Position - (Optional, default getPosATL curatorCamera) position, for supported types see BIS_fnc_position
targetPos: Array format Vector3D, Position or Object - (Optional, default vectorDir curatorCamera) vector dir or target object/position
time: Number or Boolean - (Optional, default 0) commit time or true to calculate time automatically
Return Value:
Boolean true when done

Examples

Example 1:
[nil, player, 5] spawn BIS_fnc_setCuratorCamera;

Additional Information

See also:
Arma 3: Curator curatorCamera

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