selectionVectorDirAndUp: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "{{RV|type=command |game1= arma3 |version1= 2.06 |branch= dev |arg= global |descr= Searches for selection in the object model in the give LOD level of the object model, an...")
 
No edit summary
Line 28: Line 28:
When [[Number]] is used, command searches for a LOD with the similar [[LOD_resolutions|resolution]] (see [[allLODs]]).
When [[Number]] is used, command searches for a LOD with the similar [[LOD_resolutions|resolution]] (see [[allLODs]]).


|r1= [[Array]] - in format <nowiki>[</nowiki>[[vectorDir]], [[vectorUp]]<nowiki>]</nowiki>.
|r1= [[Array]] - in format <nowiki>[</nowiki>[[vectorDir]], [[vectorUp]]<nowiki>]</nowiki>, where the vectors are in model space


|seealso= [[selectionPosition]] [[selectionNames]] [[allLODs]]
|seealso= [[selectionPosition]] [[selectionNames]] [[allLODs]]
}}
}}

Revision as of 19:19, 8 July 2021

Hover & click on the images for description
Only available in Development branch(es) until its release with Arma 3 patch v2.06.

Description

Description:
Searches for selection in the object model in the give LOD level of the object model, and returns the Direction and Up vectors in model space.
Groups:
Object Manipulation

Syntax

Syntax:
object selectionVectorDirAndUp [selectionName, LOD]
Parameters:
object: Object
selectionName: String - selection name (see selectionNames)
LOD: String or Number - the LOD that contains the selection. String can be one of:
  • "Memory"
  • "Geometry"
  • "FireGeometry"
  • "LandContact"
  • "HitPoints"
  • "ViewGeometry" (since Arma 3 v2.06.147636)
When Number is used, command searches for a LOD with the similar resolution (see allLODs).
Return Value:
Array - in format [vectorDir, vectorUp], where the vectors are in model space

Examples

Examples:
Example needed

Additional Information

See also:
selectionPosition selectionNames allLODs

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