14 lines
315 B
Plaintext
14 lines
315 B
Plaintext
void main()
|
|
{
|
|
AssignCommand(OBJECT_SELF, PlaySound("as_cv_bell2"));
|
|
int nIncrement = GetLocalInt(OBJECT_SELF, "DeleteTimer");
|
|
|
|
int nTimeSet = nIncrement + 1;
|
|
SetLocalInt(OBJECT_SELF, "DeleteTimer", nTimeSet);
|
|
|
|
if (GetLocalInt(OBJECT_SELF, "DeleteTimer") >= 15)
|
|
{
|
|
DestroyObject(OBJECT_SELF);
|
|
}
|
|
}
|