Hello,
I have a magic circle that I want to destroy when the player completes a quest, but for some reason I can't get rid of it, even though I can destroy other placeable effects with my script. Can anyone help? PLC_MC_ARCANA03 is the one I can't destroy.
Thanks in advance,
Matt
void main()
{
effect eVFX;
object oSelf = OBJECT_SELF;
object oArea = GetArea(oSelf);
// Apply a visual effect.
eVFX = EffectVisualEffect(VFX_HIT_AOE_HOLY);
ApplyEffectToObject(DURATION_TYPE_INSTANT, eVFX, oSelf);
object oFX = GetObjectByTag("fx_death_god_light_red");
object oFX2 = GetObjectByTag("PLC_MC_ARCANA03");
object oStain1 = GetObjectByTag("PLC_MR_Bloodstain1");
object oLight = GetObjectByTag("lt_altarRed");
object oSound1 = GetObjectByTag("EntranceEvil");
object oSound2 = GetObjectByTag("MagicChants");
DestroyObject(oFX, 0.2);
DestroyObject(oFX2, 0.3);
DestroyObject(oStain1, 0.4);
SetLightActive(oLight, FALSE);
SoundObjectStop(oSound1);
SoundObjectStop(oSound2);
RecomputeStaticLighting(oArea);
}





Retour en haut






