Remade Dungeon Level One: Central
Remade Dungeon Level One: Central. Added Didiamus' creature overrides. Full compile.
This commit is contained in:
30
_module/nss/object_respawner.nss
Normal file
30
_module/nss/object_respawner.nss
Normal file
@@ -0,0 +1,30 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: Name: Object Respawner
|
||||
//:: FileName: object_respawner
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
Respawn an object after its destroyed.
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: VorpalBlade
|
||||
//:: Created On: 7/21/02
|
||||
//:://////////////////////////////////////////////
|
||||
void RespawnObject(int nType, string sTemp, location lRespawn);
|
||||
|
||||
void RespawnObject(int nType, string sTemp, location lRespawn)
|
||||
{
|
||||
CreateObject(nType, sTemp, lRespawn);
|
||||
}
|
||||
|
||||
|
||||
void main()
|
||||
{
|
||||
// Get the object's spawn point, Type and the template name as the Tag.
|
||||
location lSpawn = GetLocation(OBJECT_SELF);
|
||||
string sResref = GetResRef(OBJECT_SELF);
|
||||
int nObjectType = GetObjectType(OBJECT_SELF);
|
||||
// Send Respawn command to the module so it will execute even
|
||||
// after this object is dead and buried
|
||||
AssignCommand(GetModule(), DelayCommand(900.0, RespawnObject(nObjectType, sResref, lSpawn)));
|
||||
}
|
||||
|
Reference in New Issue
Block a user