15 lines
533 B
Plaintext
15 lines
533 B
Plaintext
|
void main()
|
||
|
{
|
||
|
object oObject = GetObjectByTag("IncubatingClone");
|
||
|
effect eShk = EffectVisualEffect(VFX_DUR_PROT_BARKSKIN);
|
||
|
|
||
|
if ((GetIsObjectValid(oObject) == TRUE) && (GetLocalInt(OBJECT_SELF, "Pause") == 0) && (GetLocalInt(GetModule(), "Incubator") >= 1))
|
||
|
{
|
||
|
SetLocalInt(OBJECT_SELF, "Pause", 1);
|
||
|
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eShk, oObject);
|
||
|
AssignCommand(OBJECT_SELF, PlaySound("as_na_steamlong1"));
|
||
|
DelayCommand(2.0, ExecuteScript("killself", oObject));
|
||
|
DelayCommand(3.0, SetLocalInt(OBJECT_SELF, "Pause", 0));
|
||
|
}
|
||
|
}
|