ClosingGenerator
Gets called when the player is closing the generator.
Start a script section
!-- OnEvent ClosingGenerator
-- require @evPlayer *evGenerator $evPlayDeniedAnimation $evIsAllowed
# Add your instructions here
- Group: PlayerEvents
- Cancellable: Yes
- Event data:
PlayerClosingGeneratorEventArgs
Injected variables
| Variable | Type | Description |
|---|---|---|
@evPlayer | player value | Gets the player who is closing the generator. |
*evGenerator | reference to Generator object | Gets the generator. |
$evPlayDeniedAnimation | bool value | Gets or sets whether to play the denied permissions sound. |
$evIsAllowed | bool value | Whether the event is allowed to run. |