s&
About
The Project
info
About s&box
map
Roadmap
monitoring
Metrics
Engine startup and usage numbers
Updates
newspaper
Latest News
jams
Workshop
Steam
open_in_new
Steam Workshop
Assets
view_in_ar
Models
texture
Materials
apparel
Clothing
Forum
Learn
Documentation
rocket_launch
Getting Started
docs
Documentation
api
API Reference
Resources
school
Tutorials
manage_search
Code Search
Get s&box
Sign in with Steam
Api
Classes
DyingEvent
chevron_left
Classes
class
DyingEvent
Constructors
functions
DyingEvent
Properties
data_object
Cancelled
data_object
CreateRagdoll
data_object
DamageInfo
data_object
Instigator
data_object
Victim
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
.
sealed
Sandbox.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.