OnPlayerCorpseSpawned
Usage
- No return behavior
Example Autogenerated
csharp
private void OnPlayerCorpseSpawned( BasePlayer instance, PlayerCorpse playerCorpse )
{
Puts( "OnPlayerCorpseSpawned works!" );
}Location
- BasePlayer::CreateCorpse(BasePlayer.PlayerFlags flagsOnDeath, UnityEngine.Vector3 posOnDeath, UnityEngine.Quaternion rotOnDeath, List<TriggerBase> triggersOnDeath, bool forceServerSide)
csharp
//---
if (lifeStory != null)
{
num += Mathf.Clamp(Mathf.FloorToInt(lifeStory.secondsAlive / 180f), 0, 20);
}
component2.containedItems.Add(new ItemAmount(ItemManager.FindItemDefinition("fat.animal"), num));
Interface.CallHook("OnPlayerCorpseSpawned", this, playerCorpse);
return playerCorpse;
}
}
return null;
static float GetFloatBasedOnUserID(ulong steamid, ulong seed)
//---