mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-13 22:01:04 -04:00
54 lines
968 B
Plaintext
54 lines
968 B
Plaintext
include library.sequencer;
|
|
|
|
|
|
trigger OnAttach()
|
|
{
|
|
if(hasObjVar(self, "strSequenceIdentifier"))
|
|
{
|
|
setName(self, "Sequencer Name: "+getStringObjVar(self, "strSequenceIdentifier"));
|
|
LOG("npe", "test2");
|
|
|
|
}
|
|
else
|
|
{
|
|
setName(self, "No Sequence Identifier set");
|
|
}
|
|
messageTo(self, "doPreloadRequest",null, 1, false);
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
trigger OnInitialize()
|
|
{
|
|
if(hasObjVar(self, "strSequenceIdentifier"))
|
|
{
|
|
setName(self, "Sequencer Name: "+getStringObjVar(self, "strSequenceIdentifier"));
|
|
LOG("npe", "test2");
|
|
|
|
}
|
|
else
|
|
{
|
|
setName(self, "No Sequence Identifier set");
|
|
}
|
|
messageTo(self, "doPreloadRequest",null, 1, false);
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
messageHandler doPreloadRequest()
|
|
{
|
|
requestPreloadCompleteTrigger(self);
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
trigger OnPreloadComplete()
|
|
{
|
|
sequencer.registerSequenceObject(self);
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
|
|
trigger OnDestroy()
|
|
{
|
|
|
|
sequencer.cleanUpSequenceObject(self);
|
|
return SCRIPT_CONTINUE;
|
|
} |