Files
HeroesStone_PRC8/_removed/corpse_unacquire.nss
Jaysyn904 1eefc84201 Initial Commit
Initial Commit.
2025-09-14 15:40:46 -04:00

32 lines
881 B
Plaintext

//::///////////////////////////////////////////////
//:: Name corpse_unacquire
//:: FileName
//::
//:://////////////////////////////////////////////
/*
Responds to the onunacquire event of the module.
Detect when a corpse is placed on the ground.
*/
//:://////////////////////////////////////////////
//:: Created By: Alexandre Brunel
//:: Created On: 21/04/2003
//:://////////////////////////////////////////////
#include "corpse_lib"
void main()
{
object item = GetModuleItemLost();
if( (GetTag(item) == CorpsePickableCorpseTag)
&&!GetIsObjectValid(GetItemPossessor(item)) )
{
if(GetIsObjectValid(MoveCorpseTo(GetLocation(GetModuleItemLostBy()),GetPickableCorpse(item))))
{
DestroyObject(item);
}
}
else
{
//Put other unAcquire events here.
}
}