Module commit
Module commit.
This commit is contained in:
23
_module/nss/_craft_hb_cook.nss
Normal file
23
_module/nss/_craft_hb_cook.nss
Normal file
@@ -0,0 +1,23 @@
|
||||
void main()
|
||||
{
|
||||
object oSelf=OBJECT_SELF;
|
||||
int iTimer = GetLocalInt(oSelf,"iLive");
|
||||
iTimer++;
|
||||
SetLocalInt(oSelf,"iLive",iTimer);
|
||||
if (iTimer>50)
|
||||
{
|
||||
//Chance to start a fire goes here
|
||||
//
|
||||
DestroyObject(oSelf);
|
||||
return;
|
||||
}
|
||||
|
||||
if (GetIsNight()==TRUE)
|
||||
{
|
||||
//Chance to attaract an animal
|
||||
}
|
||||
|
||||
PlaySound("al_cv_firebowl1");
|
||||
if (Random(1000)<100) PlaySound("as_na_rockfalsm2");
|
||||
|
||||
}
|
Reference in New Issue
Block a user