utils Module#
Utility functions and constants exposed by DCS.
Fields#
| Field | Type | Description |
|---|---|---|
COLOR |
table |
Color table. |
PI |
number |
Pi constant. |
units |
table |
Units of measurement. |
Functions#
adv_round#
Unknown.
angleDegrees#
Unknown.
bitor#
Unknown.
copyTable#
Unknown.
createTableCopy#
Unknown.
dofileIn#
Executes a file in a supplied environment.
dofileInEx#
Executes a file in a supplied environment with a base table.
getTime#
Returns hours, minutes, and seconds for a duration.
get_azimuth#
Unknown.
get_elevation#
Unknown.
get_lengthZX#
Unknown.
get_vec_length#
Unknown.
hasbit#
Unknown.
invertColor#
Unknown.
loadfileIn#
Loads a file into a compiled chunk with the given environment.
Note
Parameters passed when calling the chunk are accessible with ... in the script.
makeColor#
Unknown.
parseCordinates#
Returns latitude, longitude, and course parsed from a string.
round#
Unknown.
round_qty#
Unknown.
verifyChunk#
Verifies a compiled chunk.
Note
Performs a nil check and otherwise raises an error.