Files
EN4_PRC8/_module/nss/en3_respawn2.nss
Jaysyn904 5e36a8b4a6 2025/09/04 Update
Implemented class titles for randomized mobs with class levels.
Full compile.
2025-09-04 22:40:44 -04:00

43 lines
879 B
Plaintext

void main()
{
object oPC = GetEnteringObject();
if (GetIsPC(oPC))
{
string sDestTag = GetLocalString(oPC, "Respawn");
if (sDestTag == "")
{
sDestTag = "EN4_Respawn";
}
object oSpawnPoint = GetObjectByTag(sDestTag);
if (GetIsObjectValid(oSpawnPoint))
{
AssignCommand(oPC, JumpToLocation(GetLocation(oSpawnPoint)));
}
else
{
// optional debug
FloatingTextStringOnCreature("Invalid spawn point: " + sDestTag, oPC);
}
}
}
/* void main()
{
object oPC;
object oSpawnPoint;
string sDestTag = "en3_respawning";
oPC = GetEnteringObject();
if (GetIsPC(oPC))
{
sDestTag = GetLocalString(oPC,"Respawn");
oSpawnPoint = GetObjectByTag(sDestTag);
AssignCommand(oPC,JumpToLocation(GetLocation(oSpawnPoint)));
}
}
*/