mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-31 00:15:54 -04:00
26 lines
540 B
Plaintext
26 lines
540 B
Plaintext
/***** INCLUDES ********************************************************/
|
|
|
|
include library.firework;
|
|
|
|
/***** TRIGGERS ********************************************************/
|
|
|
|
trigger OnAttach()
|
|
{
|
|
messageTo(self, "handleCleanup", null, 60f, false);
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
trigger OnDetach()
|
|
{
|
|
destroyObject(self);
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
/***** HANDLERS ********************************************************/
|
|
|
|
messageHandler handleCleanup()
|
|
{
|
|
detachScript(self, firework.SCRIPT_FIREWORK_CLEANUP);
|
|
return SCRIPT_CONTINUE;
|
|
}
|