Jump to content

GetSensorDir

From CMM Wiki
Revision as of 12:26, 24 June 2026 by Ozdeadmeat (talk | contribs) (GetSensorDir – created via PowerShell script (2026-06-24T22:26:46Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
Environment: Mission Scripting
Function: GetSensorDir
Function Description: Calculates the Global vector direction for a specific units sensor
File Location: cmm.DCSFunctions.lua
Syntax: CMM.GetSensorDir( table sensorState )
Return Value: table or nil
Parameters: Name Description
sensorStateThe specific unit you want to get the sensor point of interest from.
Example: CMM.GetSensorDir(<sensorStateTABLE>)
Example Description: Will return the local vector direction of the sensor system based on the heading and pitch of the sensor system for the unit, this is used in CMM.GetSensorPoint to calculate the ground intercept point of the sensor system.
Related Functions:
Notes: