16 lines
463 B
Plaintext
16 lines
463 B
Plaintext
|
void main()
|
||
|
{
|
||
|
|
||
|
int nIncrement = GetLocalInt(OBJECT_SELF, "DeleteTimer");
|
||
|
|
||
|
int nTimeSet = nIncrement + 1;
|
||
|
SetLocalInt(OBJECT_SELF, "DeleteTimer", nTimeSet);
|
||
|
AssignCommand(OBJECT_SELF, PlaySound("as_an_owlhoot"));
|
||
|
DelayCommand(3.0, AssignCommand(OBJECT_SELF, PlaySound("as_an_owlhoot2")));
|
||
|
if (GetLocalInt(OBJECT_SELF, "DeleteTimer") >= 30)
|
||
|
{
|
||
|
AssignCommand(OBJECT_SELF, PlaySound("as_mg_telepout1"));
|
||
|
DestroyObject(OBJECT_SELF);
|
||
|
}
|
||
|
}
|