14 lines
258 B
Plaintext
14 lines
258 B
Plaintext
|
void main()
|
||
|
{
|
||
|
|
||
|
int nIncrement = GetLocalInt(OBJECT_SELF, "DeleteTimer");
|
||
|
|
||
|
int nTimeSet = nIncrement + 1;
|
||
|
SetLocalInt(OBJECT_SELF, "DeleteTimer", nTimeSet);
|
||
|
|
||
|
if (GetLocalInt(OBJECT_SELF, "DeleteTimer") >= 10)
|
||
|
{
|
||
|
DestroyObject(OBJECT_SELF);
|
||
|
}
|
||
|
}
|