HoS_PRC8/_mod/_module/nss/coffin_act_move.nss

12 lines
387 B
Plaintext
Raw Normal View History

2024-11-25 19:36:07 -05:00
void main()
{
object oPC=GetPCSpeaker();
object oItem=CreateItemOnObject("vamp_it_coffin",oPC);
object oTarget=GetLocalObject(oPC,"oTarget");
object oOwner=GetLocalObject(oTarget,"oVampire");
SetLocalObject(oItem,"oOwner",oOwner);
DeleteLocalObject(oOwner,"oCoffin");
DeleteLocalInt(oOwner,"nCoffinPlaced");
if (GetIsObjectValid(oItem)) DestroyObject(oTarget);
}