setDefaultCamera: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(wanted to create a page but instead.....)
 
No edit summary
Line 1: Line 1:
'''Just this one last time... The captcha is broken! Each command template contains link to external source, in this case forums, so in order to create new page non admin users have to pass captcha, which is broken. So here is is, I would very much like to add this page about setDefaultCamera command, but I can't. I dunno what else to do, and seems no one gives a monkey about it despite the earlier reports. So yeah, whatever, I suddenly lost all will to share on wiki my current and future findings too. --KK'''
{{Command|= Comments
____________________________________________________________________________________________
 
| arma3 |= Game name
 
|1.10|= Game version
____________________________________________________________________________________________
 
| Sets the position and direction for the camera used after camera is set on no object (log out view when leaving MP game for example) |= Description
____________________________________________________________________________________________
 
| '''setDefaultCamera''' [position, direction] |= Syntax
 
|p1= position: [[PositionASL]] - position of the camera |= Parameter 1
|p2= direction: [[vectorDir]] - direction of the camera |= Parameter 2
 
| [[Nothing]] |= Return value
____________________________________________________________________________________________
 
|x1= <code>[[setDefaultCamera]] [[5000,5000,200],[1,1,-1]];</code> |= Example 1
 
|x2= Lift camera 100m up above current player position and point downwards:
<code>[[setDefaultCamera]] <nowiki>[</nowiki>[[ATLtoASL]] ([[player]] [[modelToWorld]] [0,0,100]),[0,0,-1]];</code> |= Example 2
 
____________________________________________________________________________________________
 
| [[camCreate]], [[cameraOn]], [[cameraView]], [[cameraEffect]], [[cameraEffectEnableHUD]], [[switchCamera]], [[positionCameraToWorld]], [[cameraInterest]], [[setCameraInterest]], [[getEditorCamera]], [[mapCenterOnCamera]], [[preloadCamera]], [[restartEditorCamera]] |= See also
 
}}
 
<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:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Revision as of 19:53, 11 February 2014

Hover & click on the images for description

Description

Description:
Sets the position and direction for the camera used after camera is set on no object (log out view when leaving MP game for example)
Groups:
Uncategorised

Syntax

Syntax:
setDefaultCamera [position, direction]
Parameters:
position: PositionASL - position of the camera
direction: vectorDir - direction of the camera
Return Value:
Nothing

Examples

Example 1:
setDefaultCamera [[5000,5000,200],[1,1,-1]];
Example 2:
Lift camera 100m up above current player position and point downwards: setDefaultCamera [ATLtoASL (player modelToWorld [0,0,100]),[0,0,-1]];

Additional Information

See also:
camCreatecameraOncameraViewcameraEffectcameraEffectEnableHUDswitchCamerapositionCameraToWorldcameraInterestsetCameraInterestgetEditorCameramapCenterOnCamerapreloadCamerarestartEditorCamera

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