setDefaultCamera: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (wanted to create a page but instead.....) |
Killzone Kid (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
''' | {{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
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