Basics: Constants
Constants are placeholder for certain values that you can use in your scripts. for instance, the constant math.kPi corresponds to the mathematical constant of PI, while input.kKeyX corresponds to the key code of the X key on your keyboard.
Table of Contents
Using Constants
To use a constant, simply write theApiName.theConstantName.You cannot overwrite or store values into constants, only compare against constants and fill local or member variables with their values.
Most commonly, you will use constants as function parameters like so:
local X, Y, Z = object.getTranslation ( this.getObject ( ) , object.kGlobalSpace )