get3DENGrid: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{GameCategory|arma3|New Scripting Commands}} {{GameCategory|arma3|Scripting Commands}} {{uc:{{PAGENAME}}}}" to "")
m (formatting)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


|arma3
|game1= arma3


|1.56
|version1= 1.56


|gr1= Eden Editor
|gr1= Eden Editor


| Returns the grid increment for the given transformation type.<br>
|descr= Returns the grid increment for the given transformation type.
Transformation types:
* Rotation - "r"
* Translation - "t"
* Scale - "s"


| '''get3DENGrid''' type
|s1= '''get3DENGrid''' type
|p1= type: [[String]] - name of transformation
| [[Number]]


|x1= <code>currentMovementIncrement = [[get3DENGrid]] "t";// returns 1</code>
|p1= type: [[String]] - Name of transformation type. Can be:
* <tt>"r"</tt> - Rotation
* <tt>"t"</tt> - Translation
* <tt>"s"</tt> - Scale


|
|r1= [[Number]]
[[get3DENMouseOver]]
 
[[add3DENConnection]]
|x1= <code>_currentIncrement = [[get3DENGrid]] "t";</code>
[[add3DENEventHandler]]
 
[[all3DENEntities]]
|seealso= [[set3DENGrid]]
[[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]]
}}
}}

Revision as of 13:26, 18 May 2021

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