selectionVectorDirAndUp: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Fix typo)
m (Some wiki formatting)
Line 27: Line 27:


|r1= [[Array]] - in format [<nowiki/>[[vectorDir]], [[vectorUp]]], where the vectors are in model space
|r1= [[Array]] - in format [<nowiki/>[[vectorDir]], [[vectorUp]]], where the vectors are in model space
|x1= <sqf>vehicle player selectionVectorDirAndUp ["drivewheel_axis", "FireGeometry"] params ["_axisVectorDir", "_axisVectorUp"];</sqf>


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

Revision as of 19:32, 5 May 2022

Hover & click on the images for description

Description

Description:
Searches for selection in the object model's LOD level, 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"
  • Number - 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

Example 1:
vehicle player selectionVectorDirAndUp ["drivewheel_axis", "FireGeometry"] params ["_axisVectorDir", "_axisVectorUp"];

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