Aller au contenu

Photo

destroy placeable effect?


  • Veuillez vous connecter pour répondre
2 réponses à ce sujet

#1
Ubai

Ubai
  • Members
  • 88 messages

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);
}


#2
Tchos

Tchos
  • Members
  • 5 054 messages

Do you have more than one object tagged PLC_MC_ARCANA03 in your module, anywhere?



#3
Ubai

Ubai
  • Members
  • 88 messages

Oops! I forgot that I had converted it to an environmental object. :P

 

Thanks!

Matt