Hi I'm trying to create a power that applies the invisibility effect to the caster, but for some reason it's not working. For reasons I won't go into, I've had to create a script that handles playing the visual and sound effects , like this:
Scriptname magicInvisibilityScript extends ActiveMagicEffect
Sound Property IntroSoundFX Auto
EffectShader Property Shader Auto
VisualEffect Property Effect Auto
ObjectReference selfRef
Event OnEffectStart(Actor Target, Actor Caster)
selfRef = Caster
IntroSoundFX.Play(selfRef)
Shader.Play(selfRef, -1)
Effect.Play(selfRef, -1)
EndEventThe visual effect I pass in is one I've created that uses the InvisFXBody01 art object, which should make the caster appear invisible, but it doesn't get applied for some reason. Any ideas what I could be missing? It would also be acceptable to just set the caster's alpha value to make them appear invisible, but that's not working when I go to 1st person view. :confused: Thanks