This keyword allows you to define data structures.
The definition of the struct begins with the keyword "struct" followed by the name that the user wishes to assign to the struct.
Then it is possible to declare the type and name of the fields that make up the struct.
Finally, the struct is terminated with the keyword "end_struct".
Below is a struct named "CUSTOM_DATE" containing three integers named "day", "month", "year" respectively:
Below we initialize the previous struct with the foundation date of ROBOX:
Example of using vectors in a struct:
Example of using struct vectors:
NOTE: You can't use registers to index arrays of structures or internal index arrays. |