/* //Converts playername. For example name "Jack Hill" will be send back as "JackHill" string ConvertName(string sName, location lLocation) { CreateObject(OBJECT_TYPE_PLACEABLE,"InvinsibleNamer",lLocation,FALSE,sName); string name = GetTag(GetNearestObjectToLocation(OBJECT_TYPE_PLACEABLE,lLocation,1)); DestroyObject(GetObjectByTag(name)); return name; } void main() { //This script seeks whos coffin was destroed and destroes coffins owners respawn //waypoint. string sDead = GetTag(OBJECT_SELF); int iFound = FALSE; object oPC = GetFirstPC(); string sName=GetPCPublicCDKey(oPC); SendMessageToPC(oPC, "Single Player: "+sName); if (sName=="") { SendMessageToPC(oPC, "Single Player. Alternative thing used"); DeleteCampaignVariable("Vampire", "VampCoffinLocation",oPC); } else { while (iFound == FALSE||oPC != OBJECT_INVALID || sName !="") { //And again we will convert players name and go back to start sName=GetPCPublicCDKey(oPC); //string name = ConvertName(sName,GetLocation(OBJECT_SELF)); //If player has same name as coffin had if (sName == sDead) { //Destroy players respawn waypoint //DestroyObject(GetObjectByTag(GetName(oPC)),0.1f); DeleteCampaignVariable("Vampire", "VampCoffinLocation",oPC); iFound = TRUE; } oPC = GetNextPC(); } } }*/