Initial Upload
Initial Upload
This commit is contained in:
24
_module/nss/asg_rul_micscfx.nss
Normal file
24
_module/nss/asg_rul_micscfx.nss
Normal file
@@ -0,0 +1,24 @@
|
||||
// Cleanup FX script for MICS.
|
||||
|
||||
void main()
|
||||
{
|
||||
|
||||
object oTarget = OBJECT_SELF;
|
||||
object oItem = GetLocalObject(oTarget,"ASG_BUILDITEM_ITEM");
|
||||
object oFour = GetLocalObject(oTarget,"MICS_FX4");
|
||||
object oThree = GetLocalObject(oTarget,"MICS_FX3");
|
||||
object oTwo = GetLocalObject(oTarget,"MICS_FX2");
|
||||
object oOne = GetLocalObject(oTarget,"MICS_FX1");
|
||||
object oZero = GetLocalObject(oTarget,"MICS_FX0");
|
||||
|
||||
if (GetIsObjectValid(oFour)) DestroyObject(oFour);
|
||||
if (GetIsObjectValid(oThree)) DestroyObject(oThree);
|
||||
if (GetIsObjectValid(oTwo)) DestroyObject(oTwo);
|
||||
if (GetIsObjectValid(oOne)) DestroyObject(oOne);
|
||||
if (GetIsObjectValid(oZero)) DestroyObject(oZero);
|
||||
if (GetIsObjectValid(oItem)) DeleteLocalObject(oTarget,"ASG_BUILDITEM_ITEM");
|
||||
|
||||
PlaySound("as_mg_frstmagic1");
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user