Skip to main content

UnlockedGenerator

Gets called when the player unlocked the generator.

Start a script section

!-- OnEvent UnlockedGenerator
-- require @evPlayer *evGenerator

# Add your instructions here
  • Group: PlayerEvents
  • Cancellable: No
  • Event data: PlayerUnlockedGeneratorEventArgs

Injected variables

VariableTypeDescription
@evPlayerplayer valueGets the player who has unlocked the generator.
*evGeneratorreference to Generator objectThe generator that is involved in the event.