//:://///////////////////////////////////////////// //:: 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))); }