move3DENCamera: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(updated description)
m (Text replacement - "\] +\[" to "] [")
 
(30 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


|arma3|= Game name
|game1= arma3
|version1= 1.56


|1.56|Game version=
|gr1= Eden Editor


|gr1= Eden Editor |GROUP1=
|descr= Moves the [[get3DENCamera|Eden Editor camera]].
____________________________________________________________________________________________


| When useOffset is [[true]], camera will move to the position + defined offset in config and '''target''' the position. If useOffset is false, the camera will be moved exactly to the provided position without changing the rotation of the camera. Default camera offset: <tt>[0,-25,25]</tt> |DESCRIPTION=
|s1= [[move3DENCamera]] [position, useOffset]
____________________________________________________________________________________________


| '''move3DENCamera''' [position,useOffset] |SYNTAX=
|p1= position: [[Array]] format [[Position#PositionASL|PositionASL]] - new position
|p1= position: [[Position]] |PARAMETER1=
|p2= useOffset: [[Boolean]] - true if camera should use offset (defined in [[configFile]] >> "Cfg3DEN" >> "Camera" >> "moveOffset") |PARAMETER2=


| [[Nothing]] |RETURNVALUE=
|p2= useOffset: [[Boolean]]
* if [[true]] the camera will move to the ''position'', add the offset defined in <sqf inline>configFile >> "Cfg3DEN" >> "Camera" >> "moveOffset"</sqf> and look at the ''position''.  Default camera offset: {{hl|[0, -25, 25]}}
* if [[false]], the camera will be moved to the exact ''position''


|x1= <code>[[move3DENCamera]] [<nowiki/>[[getPos]] [[player]],true];</code>|EXAMPLE1=
|r1= [[Nothing]]
____________________________________________________________________________________________


|  
|x1= <sqf>move3DENCamera [getPosASL player, true];</sqf>
[[get3DENMouseOver]]
 
[[add3DENConnection]]
|seealso= [[get3DENCamera]]
[[add3DENEventHandler]]
[[all3DENEntities]]
[[collect3DENHistory]]
[[create3DENComposition]]
[[create3DENEntity]]
[[current3DENOperation]]
[[delete3DENEntities]]
[[do3DENAction]]
[[get3DENActionState]]
[[get3DENAttribute]]
[[get3DENCamera]]
[[get3DENConnections]]
[[get3DENEntityID]]
[[get3DENGrid]] 
[[get3DENIconsVisible]]
[[get3DENLinesVisible]]
[[get3DENSelected]]
[[is3DEN]]
[[is3DENMultiplayer]]
[[remove3DENConnection]]
[[remove3DENEventHandler]]
[[removeAll3DENEventHandlers]]
[[set3DENAttributes]]
[[set3DENGrid]]
[[set3DENIconsVisible]]
[[set3DENLinesVisible]]
[[set3DENObjectType]]
|SEEALSO=
|  |MPBEHAVIOUR=
____________________________________________________________________________________________
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<!-- DISCONTINUE Notes -->
<h3 style='display:none'>Bottom Section</h3>
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 11:46, 5 May 2024

Hover & click on the images for description

Description

Description:
Moves the Eden Editor camera.
Groups:
Eden Editor

Syntax

Syntax:
move3DENCamera [position, useOffset]
Parameters:
position: Array format PositionASL - new position
useOffset: Boolean
  • if true the camera will move to the position, add the offset defined in configFile >> "Cfg3DEN" >> "Camera" >> "moveOffset" and look at the position. Default camera offset: [0, -25, 25]
  • if false, the camera will be moved to the exact position
Return Value:
Nothing

Examples

Example 1:
move3DENCamera [getPosASL player, true];

Additional Information

See also:
get3DENCamera

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