s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News
jams
Workshop
Steam
open_in_newSteam Workshop
Assets
view_in_arModels textureMaterials apparelClothing
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
Get s&box
Sign in with Steam
Api
Classes
DyingEvent
chevron_left Classes
class
DyingEvent

Constructors

functionsDyingEvent

Properties

data_objectCancelleddata_objectCreateRagdolldata_objectDamageInfodata_objectInstigatordata_objectVictim
DyingEvent
A proposed death, passed to Sandbox.Component.IDamageable.IEvents.OnDying(Sandbox.Component.IDamageable.DyingEvent) before death effects or ragdoll creation.
class Sandbox.Component.IDamageable .
sealedSandbox.Engine

build Constructors 1

DyingEvent ()

data_object Properties 5

Cancelled
bool
Cancel this death. The publisher restores at least 1 health.
CreateRagdoll
bool
Whether to create the victim's usual ragdoll. For NPCs, this gates the base Die implementation's call to CreateRagdoll; custom death effects are unaffected.
DamageInfo
DamageInfo
The original hit, or empty damage for a death without a hit.
Instigator
GameObject
Who is responsible, as the hit settled.
Victim
GameObject
The victim, still alive while listeners decide.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.
Facepunch
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter