Jump to content

IsVec3

From CMM Wiki
Return to CMM Command Reference
Environment: Mission Scripting
Function: IsVec3
Function Description: Checks if a given table represents a valid vec3 table by verifying it has x, y, and z fields, returning true if all fields are present and logging warnings if the input is invalid.
File Location: cmm.positionFunctions.lua
Syntax: CMM.IsVec3( table vec3 )
Return Value: boolean
Parameters: Name Description
vec3A table that may contain x, y, and z fields; returns true if it is a valid vec3 table with all three components present.
Example: CMM.IsVec3({x=10, y=20, z=30})
Example Description: Returns true, confirming the input is a valid vec3 table with x, y, and z fields present.
Related Functions:
Notes: