Aller au contenu

Photo

Visual Effect Stacking Bug


  • Veuillez vous connecter pour répondre
1 réponse à ce sujet

#1
Irisiri

Irisiri
  • Members
  • 8 messages
If I add a simple VFX to a placeable using (for example)

effect eVFX = EffectVisualEffect(VFX_DUR_GLYPH_OF_WARDING);
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eVFX, OBJECT_SELF);

my characters will see one of this effect on the placeable, but as soon as I go out of sight and come back close, nwn will create the effect another time and it will stack, and I can repeat and even the alpha layer wich should be transparent will turn into somthing very bright and colorful.

Also removing all effects using a loop will only remove the first and original visual effect all the new ones created by sight/out of sight will remain

This problem disapear if you change area and come back : only 1 visual effect as intended.

Any idea how to solve this problem?

not sure if it will help but I have tested the following VFX's
VFX_DUR_GLOBE_MINOR
VFX_DUR_GLOBE_INVULNERABILITY
VFX_DUR_GLYPH_OF_WARDING
.. same problem for all.

Modifié par Irisiri, 06 février 2012 - 10:00 .


#2
FunkySwerve

FunkySwerve
  • Members
  • 1 308 messages
You can't solve it, other than preventing the vfx from leaving and reentering the player's field of view, by keeping area sizes down. I mentioned this issue a few threads down, actually, in the thread about monsters scarecrowing inappropriately in similar situations.

Funky