Skip to main content

TriggeringTesla

Gets called when the player is triggering a TeslaGate.

Start a script section

!-- OnEvent TriggeringTesla
-- require @evPlayer *evTesla $evIsAllowed

# Add your instructions here
  • Group: PlayerEvents
  • Cancellable: Yes
  • Event data: PlayerTriggeringTeslaEventArgs

Injected variables

VariableTypeDescription
@evPlayerplayer valueGets the player who is causing a tesla gate to trigger.
*evTeslareference to Tesla objectGets the Tesla associated with the event.
$evIsAllowedbool valueWhether the event is allowed to run.