Modifying Addon Constants
So far, this has gone without mention, but the `Addon` class takes in a `constants` argument. This page will go over that.
What is AddonConstants?
AddonConstants?Using Custom Constants
# ...
constants = AddonConstants(
TICK_INTERVAL = 4, # tps = 64 / TICK_INTERVAL, so this would make the TPS 16
CALL_TIMEOUT_SECONDS = 5 # calls will error after 5 seconds if they don't get a response
)
addon = Addon(
"My Addon",
path = ".",
port = 2500,
constants = constants
)
# ...Last updated
Was this helpful?