Jaysyn904 04165202c0 Initial upload
Initial upload
2024-11-25 19:36:07 -05:00

17 lines
537 B
Plaintext

// campfire kit
void main()
{
location lLoc=GetItemActivatedTargetLocation();
object oPC=GetItemActivator();
object oOutside=GetNearestObjectByTag("RTS_SURFACE",oPC);
if (oOutside!=OBJECT_INVALID)
{ // create
object oFire=CreateObject(OBJECT_TYPE_PLACEABLE,"fb1_campfire",lLoc);
float fTime=HoursToSeconds(4);
object oItem=GetItemActivated();
DelayCommand(fTime,DestroyObject(oFire));
DestroyObject(oItem);
} // create
else { SendMessageToPC(oPC,"This item may only be used outside."); }
}