Skip to main content

DamagingScpCompleting

Gets called when the scp damage objective is being completed.

Start a script section

!-- OnEvent DamagingScpCompleting
-- require @evTarget @evPlayer $evFaction $evInfluenceToGrant $evTimeToGrant $evSendToPlayers $evIsAllowed

# Add your instructions here
  • Group: ObjectiveEvents
  • Cancellable: Yes
  • Event data: ScpDamagingObjectiveEventArgs

Injected variables

VariableTypeDescription
@evTargetplayer valueGets the SCP player that has been damaged.
@evPlayerplayer valueGets or sets the player who triggered the objective completion.
$evFactionFaction enum valueGets or sets the Faction which receives the InfluenceToGrant and TimeToGrant rewards.
$evInfluenceToGrantnumber valueGets or sets the amount of influence granted to the Faction.
$evTimeToGrantnumber valueGets or sets the amount of time reduced from the Faction's timer.
Remarks: Negative values reduce the timer, positive extends it.
$evSendToPlayersbool valueGets or sets whether the objective completion has been sent to players and is visible on their screen.
$evIsAllowedbool valueWhether the event is allowed to run.