2025/09/04 Update
Implemented class titles for randomized mobs with class levels. Full compile.
This commit is contained in:
@@ -1,4 +1,30 @@
|
||||
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;
|
||||
@@ -13,4 +39,4 @@ if (GetIsPC(oPC))
|
||||
AssignCommand(oPC,JumpToLocation(GetLocation(oSpawnPoint)));
|
||||
}
|
||||
}
|
||||
|
||||
*/
|
||||
|
Reference in New Issue
Block a user