get3DENGrid: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *N([a-z ])" to "$1 - n$2")
 
(24 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= Returns the grid increment for the given transformation type.
____________________________________________________________________________________________


| Returns the grid increment for the given transformation type.<br>
|s1= [[get3DENGrid]]  type
Transformation types:
* Rotation - "r"
* Translation - "t"
* Scale - "s"
|DESCRIPTION=
____________________________________________________________________________________________


| '''get3DENGrid''' type|SYNTAX=
|p1= type: [[String]] - name of transformation type. Can be:
|p1= type: [[String]] - name of transformation |PARAMETER1=
* {{hl|"r"}} - Rotation
| [[Number]] |RETURNVALUE=
* {{hl|"t"}} - Translation
* {{hl|"s"}} - Scale


|x1= <code>currentMovementIncrement = [[get3DENGrid]] "t";// returns 1</code>|EXAMPLE1=
|r1= [[Number]]
____________________________________________________________________________________________


|
|x1= <sqf>_currentIncrement = get3DENGrid "t";</sqf>
[[get3DENMouseOver]]
[[add3DENConnection]]
[[add3DENEventHandler]]
[[all3DENEntities]]
[[collect3DENHistory]]
[[create3DENComposition]]
[[create3DENEntity]]
[[current3DENOperation]]
[[delete3DENEntities]]
[[do3DENAction]]
[[get3DENActionState]]
[[get3DENAttribute]]
[[get3DENCamera]]
[[get3DENConnections]]
[[get3DENEntityID]]
[[get3DENIconsVisible]]
[[get3DENLinesVisible]]
[[get3DENSelected]]
[[is3DEN]]
[[is3DENMultiplayer]]
[[move3DENCamera]]
[[remove3DENConnection]]
[[remove3DENEventHandler]]
[[removeAll3DENEventHandlers]]
[[set3DENAttributes]]
[[set3DENGrid]]
[[set3DENIconsVisible]]
[[set3DENLinesVisible]]
[[set3DENObjectType]]
|SEEALSO=  


| |MPBEHAVIOUR=  
|seealso= [[set3DENGrid]]
____________________________________________________________________________________________
}}
}}
<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}}}}]]
[[Category:Command Group: Eden Editor|{{uc:{{PAGENAME}}}}]]

Latest revision as of 16:39, 8 November 2023

Hover & click on the images for description

Description

Description:
Returns the grid increment for the given transformation type.
Groups:
Eden Editor

Syntax

Syntax:
get3DENGrid type
Parameters:
type: String - name of transformation type. Can be:
  • "r" - Rotation
  • "t" - Translation
  • "s" - Scale
Return Value:
Number

Examples

Example 1:
_currentIncrement = get3DENGrid "t";

Additional Information

See also:
set3DENGrid

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