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