OnPlayerCorpseSpawn
Usage
- No return behavior
Example Autogenerated
csharp
private void OnPlayerCorpseSpawn( )
{
Puts( "OnPlayerCorpseSpawn works!" );
}
Location
- BasePlayer::CreateCorpse(BasePlayer/PlayerFlags flagsOnDeath, UnityEngine.Vector3 posOnDeath, UnityEngine.Quaternion rotOnDeath, System.Collections.Generic.List`1<TriggerBase> triggersOnDeath, bool forceServerSide)
csharp
public virtual BaseCorpse CreateCorpse(BasePlayer.PlayerFlags flagsOnDeath, Vector3 posOnDeath, Quaternion rotOnDeath, List<TriggerBase> triggersOnDeath, bool forceServerSide = false)
{
if (Interface.CallHook("OnPlayerCorpseSpawn", this) != null)
{
return null;
}
using (TimeWarning.New("Create corpse", 0))
{
//---