LoT_PRC8/_module/nss/ta_gladweapon.nss
Jaysyn904 ec287507a1 Initial upload
Initial upload.
2023-09-25 21:32:17 -04:00

23 lines
483 B
Plaintext

// a Corny Script
#include "NW_O2_CONINCLUDE"
void RespawnObject(int iType, string sResRef, location lLoc)
{
CreateObject(iType, sResRef, lLoc);
}
void main()
{
int iType = GetObjectType(OBJECT_SELF);
string sResRef = GetResRef(OBJECT_SELF);
location lLoc = GetLocation(OBJECT_SELF);
// 5 minute delay
float fDelay = 30.0;
AssignCommand(GetModule(), DelayCommand(fDelay, RespawnObject(iType, sResRef, lLoc)));
DestroyObject(OBJECT_SELF, 5.0);
}