Skip to main content

OnCorpsePopulate

Usage​

  • Called when an NPC player corpse is about to be populated with loot
  • Returning a BaseCorpse overrides default behavior

Examples​

""
BaseCorpse OnCorpsePopulate(BasePlayer npcPlayer, BaseCorpse corpse)
{
Puts("OnCorpsePopulate works!");
return null;
}
""
BaseCorpse OnCorpsePopulate(Scientist npcPlayer, BaseCorpse corpse)
{
Puts("OnCorpsePopulate works!");
return null;
}