Sign in to follow this  
Followers 0
atrX

Scripting Basics: Data Types

1 post in this topic

Data Types

Unlike most programming languages, CoDScript does not require you to specify a data type for a variable, it is however helpful to know what each data type used by CoDScript is:

  • String: Sequence of characters
  • Integer (int): Whole number (ex: -2, -1, 0, 1, 2, ...)
  • Floating point number (float): Rational number (ex: 3.14, 1.337, ...)
  • Boolean (bool): True or false
  • Array: Collection of variables, new elements can be inserted at any given time
  • Vector3: Can be compared to an array with a size of 3, in GSC it acts basically identically to an array except that you shouldn't insert new values, only edit the 3 existing ones
1 person likes this

Share this post


Link to post
Share on other sites
Sign in to follow this  
Followers 0