Module commit

Module commit.
This commit is contained in:
Jaysyn904
2024-06-14 10:48:20 -04:00
parent 079830314c
commit f5ffe7d0b9
11110 changed files with 4747686 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
void CreatePlaceable(string sObject, location lPlace, float fDuration)
{
object oPlaceable = CreateObject(OBJECT_TYPE_PLACEABLE,sObject,lPlace,FALSE);
if (fDuration != 0.0)
DestroyObject(oPlaceable,fDuration);
}
void main()
{
location lSelf = GetLocation(OBJECT_SELF);
string sSelf = GetResRef(OBJECT_SELF);
float fPause = 1800.0;
object oTemp = CreateObject(OBJECT_TYPE_PLACEABLE,"temporaryplaceho",lSelf,FALSE);
AssignCommand(oTemp,DelayCommand(fPause,CreatePlaceable(sSelf,lSelf,0.0)));
DestroyObject(oTemp,fPause+10.0);
//SendMessageToPC(GetLastKiller(),"For testing purposes, this will respawn in 20 seconds");
}