π Special functions#
Some functions follow specific conventions to streamline functionality and ensure consistency across modules.
π The βataβ functions#
This is a reduction of βas to atβ. Several functions require 2 positions to work (example: retrieve the distance between 2 points) or an entity and a position. To simplify the use, no need to pass 3 scores for each position. You will be able to place an entity on point 1 (if it is useful), then execute the function at point 2 while executing it as the entity on point 1.
π The βreservedβ functions#
Reserved functions are special functions within each module that serve predefined purposes. They must all have a function tag (without β__β) and are located at the root of each module.
|
This function provides a path to the documentation for the module. (Must be present in every module) |
|
This function is executed when the module is loaded. (Must be present in every module) |
|
This function is executed when the module is unloaded. (Must be present in every module) |
|
This function is executed every tick. |