Initial Upload
Initial Upload
This commit is contained in:
21
_module/nss/fb1_campkit.nss
Normal file
21
_module/nss/fb1_campkit.nss
Normal file
@@ -0,0 +1,21 @@
|
||||
// campfire kit
|
||||
void main()
|
||||
{
|
||||
location lLoc=GetItemActivatedTargetLocation();
|
||||
object oPC=GetItemActivator();
|
||||
object oArea=GetArea(oPC);
|
||||
int nOutside = GetIsAreaNatural(oArea);
|
||||
|
||||
if (nOutside == AREA_NATURAL)
|
||||
{ // 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,"You cannot use this item here or at this time!");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user