Aschbourne_PRC8/_module/nss/nw_c2_vampire7.nss

25 lines
856 B
Plaintext
Raw Permalink Normal View History

2024-06-14 10:48:20 -04:00
//::///////////////////////////////////////////////
//:: NW_C2_VAMPIRE7.nss
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*
Vampire turns into a vampire shadow
that looks for the nearest coffin
with the same tag as the shadow.
*/
//:://////////////////////////////////////////////
//:: Created By:
//:: Created On:
//:://////////////////////////////////////////////
void main()
{
object oMyCoffin=GetNearestObjectByTag(GetTag(OBJECT_SELF) + "_SHAD", OBJECT_SELF);
object oGas=CreateObject(OBJECT_TYPE_CREATURE, GetTag(OBJECT_SELF) + "_SHAD",GetLocation(OBJECT_SELF));
SetLocalString(oMyCoffin,"NW_L_MYCREATOR",GetTag(OBJECT_SELF));
SetLocalString(oGas,"NW_L_MYCREATOR",GetTag(OBJECT_SELF));
//GetLocalString(OBJECT_SELF, "NW_L_MYCREATOR")
DestroyObject(OBJECT_SELF, 0.5);
}