get3DENGrid: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|game([0-9])= *([^ ]+) * +\|version([0-9])= *([^ ]+) * " to "|game$1=$2 |version$3=$4 ")
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *N([a-z ])" to "$1 - n$2")
 
(4 intermediate revisions by the same user not shown)
Line 8: Line 8:
|descr= Returns the grid increment for the given transformation type.
|descr= Returns the grid increment for the given transformation type.


|s1= [[get3DENGrid]]  type
|s1= [[get3DENGrid]]  type


|p1= type: [[String]] - Name of transformation type. Can be:
|p1= type: [[String]] - name of transformation type. Can be:
* <tt>"r"</tt> - Rotation
* {{hl|"r"}} - Rotation
* <tt>"t"</tt> - Translation
* {{hl|"t"}} - Translation
* <tt>"s"</tt> - Scale  
* {{hl|"s"}} - Scale  


|r1= [[Number]]
|r1= [[Number]]


|x1= <code>_currentIncrement = [[get3DENGrid]] "t";</code>
|x1= <sqf>_currentIncrement = get3DENGrid "t";</sqf>


|seealso= [[set3DENGrid]]
|seealso= [[set3DENGrid]]
}}
}}

Latest revision as of 15: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