generated from Jaysyn/ModuleTemplate
Initial Commit
Initial Commit.
This commit is contained in:
31
_removed/corpse_unacquire.nss
Normal file
31
_removed/corpse_unacquire.nss
Normal file
@@ -0,0 +1,31 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: 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.
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user