//:://///////////////////////////////////////////// //:: 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. } }