Aller au contenu

[solved]Removing placeable VFX through scripting


3 réponses à ce sujet

#1
Guest_dewkl_*

Guest_dewkl_*
  • Guests
I'm able to remove any effect attached to a creature (crust) by just using: RemoveAllEffects, RemoveEffect, RemoveEffectsByparameter.

I'm applying the vfx like this: Engine_ApplyEffectAtLocation(EFFECT_DURATION_TYPE_PERMANENT, eFire, lTorchTwo, 0.0, oBoss);

I've also tried RemoveEffectsByCreator where oBoss is creator. Nothing seems to work.

Modifié par dewkl, 09 juillet 2010 - 12:46 .


#2
Guest_dewkl_*

Guest_dewkl_*
  • Guests
Apparently the effect creator would be the script. However, it still doesn't work if I write:
RemoveEffectsByCreator(GetEffectCreator(eFire));

There's a RemoveVisualEffect function but only takes an object as parameter, my effect was applied to a location.

Modifié par dewkl, 08 juillet 2010 - 03:58 .


#3
DavidSims

DavidSims
  • BioWare Employees
  • 196 messages
What object are you attempting to remove the effects from? You're applying the effects at a location, therefore they aren't on your placeable. Effects applied to a location are stored on the area object. Try removing them from there.

#4
Guest_dewkl_*

Guest_dewkl_*
  • Guests
Thanks, I didn't think of that the area was an object as well. It works now when I use the area as object.