/*   Script generated by
Lilac Soul's NWN Script Generator, v. 1.6

For download info, please visit:
http://www.lilacsoul.revility.com    */

//Put this OnDeath
void main()
{

object oPC = GetLastKiller();

while (GetIsObjectValid(GetMaster(oPC)))
   {
   oPC=GetMaster(oPC);
   }

if (!GetIsPC(oPC)) return;

SetLocalInt(oPC, "intDrowning", 2);

FloatingTextStringOnCreature("The mirror breaks and the water spills out.", oPC);

object oTarget;
oTarget = GetObjectByTag("c43ForceField");

DestroyObject(oTarget, 0.0);

oTarget = GetObjectByTag("BlueMirror");

DestroyObject(oTarget, 0.0);

oTarget = GetObjectByTag("c43HighWater");

DestroyObject(oTarget, 0.0);

object oSpawn;
location lTarget;
oTarget = GetWaypointByTag("c43Drowning");

lTarget = GetLocation(oTarget);

oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "zep_lowwater", lTarget);

}
