ConsumingCorpse
Gets called when SCP-049-2 is consuming a corpse.
Start a script section
!-- OnEvent ConsumingCorpse
-- require $evHealAmount $evAddToConsumedRagdollList $evHealIfAlreadyConsumed @evPlayer *evRagdoll $evIsAllowed
# Add your instructions here
- Group: Scp0492Events
- Cancellable: Yes
- Event data:
Scp0492ConsumingCorpseEventArgs
Injected variables
| Variable | Type | Description |
|---|---|---|
$evHealAmount | number value | Gets or sets the amount of health to heal. |
$evAddToConsumedRagdollList | bool value | Gets or sets whether to add the consumed ragdoll to the list of consumed ragdolls. |
$evHealIfAlreadyConsumed | bool value | Gets or sets whether to heal the player if the ragdoll has already been consumed. |
@evPlayer | player value | Gets the player that invoked the event. |
*evRagdoll | reference to Ragdoll object | Gets the ragdoll that is related to the event. |
$evIsAllowed | bool value | Whether the event is allowed to run. |