24 lines
408 B
Plaintext
24 lines
408 B
Plaintext
|
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");
|
||
|
|
||
|
}
|