9 lines
261 B
Plaintext
9 lines
261 B
Plaintext
|
// Simple script for a door to destroy itself on spawn. Seen as this goes
|
||
|
// on the doors heartbeat event, it will fire, then as the door has been destroyed
|
||
|
// will no longer continue to fire OnHeartbeat after that.
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
DestroyObject(OBJECT_SELF);
|
||
|
}
|