Skip to main content

GeneratorActivating

Gets called when the server will activate generator.

Start a script section

!-- OnEvent GeneratorActivating
-- require *evGenerator $evIsAllowed

# Add your instructions here
  • Group: ServerEvents
  • Cancellable: Yes
  • Event data: GeneratorActivatingEventArgs

Injected variables

VariableTypeDescription
*evGeneratorreference to Generator objectGets the generator which is being activated.
$evIsAllowedbool valueWhether the event is allowed to run.