EffectShader only plays half the time

Post » Wed Jun 20, 2012 1:54 pm

Hello Everyone,

i have been working on this mod for a while (big project) and I'm having some trouble getting an EffectShader to play from this script I wrote.

The script is supposed to place an actor that I created at me and set the Alpha to 0.33 and apply the ghost shader (for all intents and purposes, he should look like the wolf in the summon familiar spell).

For some reason, the shader only plays half of the time. Here is the pertinent portion of the script:

Spoiler
----------------------------------PROPERTIES----------------------------------ActorBase Property Wolf Auto  Actor Property RCQWolfTrackerRef AutoGlobalVariable Property RCQWolfCounter AutoEffectShader Property RCQWolfShaderVar AutoFloat Property AlphaValue = http://forums.bethsoft.com/topic/1361119-effectshader-only-plays-half-the-time/0.33 Autobool Property AlphaFade = False Auto----------------------------------SCRIPT----------------------------------Event OnEffectStart(Actor target, Actor caster)		if(RCQWolfCounter.GetValue() == 0)		RCQWolfTrackerRef = Caster.PlaceActorAtMe(Wolf, 4)		ObjectReference WolfTrackerObjRef = RCQWolfTrackerRef as ObjectReference		RCQWolfCounter.SetValue(1)	EndIfUtility.Wait(2)ObjectReference WolfTrackerObjRef = RCQWolfTrackerRef as ObjectReferenceRCQWolfTrackerRef.SetAlpha(AlphaValue, AlphaFade)RCQWolfShaderVar.Play(WolfTrackerObjRef, -1.0)RegisterForSingleLOSLost(Game.GetPlayer(), RCQWolfTrackerRef as ObjectReference)EndEvent
User avatar
how solid
 
Posts: 3434
Joined: Mon Apr 23, 2007 5:27 am

Return to V - Skyrim