ActivatingGeneratorCompleting
Gets called when the generator activated objective is being completed.
Start a script section
!-- OnEvent ActivatingGeneratorCompleting
-- require *evGenerator @evPlayer $evFaction $evInfluenceToGrant $evTimeToGrant $evSendToPlayers $evIsAllowed
# Add your instructions here
- Group: ObjectiveEvents
- Cancellable: Yes
- Event data:
GeneratorActivatingObjectiveEventArgs
Injected variables
| Variable | Type | Description |
|---|---|---|
*evGenerator | reference to Generator object | Gets the generator that has been activated. |
@evPlayer | player value | Gets or sets the player who triggered the objective completion. |
$evFaction | Faction enum value | Gets or sets the Faction which receives the InfluenceToGrant and TimeToGrant rewards. |
$evInfluenceToGrant | number value | Gets or sets the amount of influence granted to the Faction. |
$evTimeToGrant | number value | Gets or sets the amount of time reduced from the Faction's timer. Remarks: Negative values reduce the timer, positive extends it. |
$evSendToPlayers | bool value | Gets or sets whether the objective completion has been sent to players and is visible on their screen. |
$evIsAllowed | bool value | Whether the event is allowed to run. |