Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

defineSpeedModifier

defineSpeedModifier(name): SpeedModifierKey

Defines the key a game’s speed modifier runs under, such as "sprint". Called once, at module scope; one name defined in two places is one key, so two mechanics share a modifier by defining the same name, and a second add under a key replaces the first.

Parameter Type
name string

SpeedModifierKey