Skip to main content

ActivatedGenerator

Gets called when the player activates the generator.

Start a script sectionโ€‹

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

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

Injected variablesโ€‹

VariableTypeDescription
@evPlayerplayer valueGets the player who activated the generator.
*evGeneratorreference to Generator objectGets the generator activated.

Validated examples using this eventโ€‹