Skip to main content

SpawningRagdoll

Gets called when ragdoll is being spawned.

Start a script section

!-- OnEvent SpawningRagdoll
-- require @evPlayer *evRagdollPrefab *evDamageHandler $evIsAllowed

# Add your instructions here
  • Group: PlayerEvents
  • Cancellable: Yes
  • Event data: PlayerSpawningRagdollEventArgs

Injected variables

VariableTypeDescription
@evPlayerplayer valueGets the player from who is ragdoll from.
*evRagdollPrefabreference to Ragdoll objectGets the ragdoll prefab which will be used to instantiate the ragdoll.
*evDamageHandlerreference to StandardDamageHandler objectGets the damage handler that caused the death of the player.
$evIsAllowedbool valueWhether the event is allowed to run.