Play effect shader on statics etc?

Post » Mon May 06, 2013 9:29 pm

Hey guys, is it possible to play effect shaders like detect life on a static object? I'm working on a spell that uses FindClosestReferenceOfAnyTypeInListFromRef() to find an object from a list of statics and activators, and I need to play an effect shader on it.

Now this works fine if the ref is an actor. Is there anything special I need to do for other object types? I've been playing with it for a while now and can't get it to work. It finds a ref, but no effect shader plays.

With these things I usually don't like to ask but I don't have hours and hours to work on it to find out it can't be done :tongue:

Scriptname HISClueFinderEffectScript extends activemagiceffect  Actor Property PlayerREF  Auto  Formlist Property HISClueTypeList autoEffectShader Property HISClueFinderEffectShader Auto  Event OnEffectStart(Actor akTarget, Actor akCaster)	ObjectReference closestClue = Game.FindClosestReferenceOfAnyTypeInListFromRef(HISClueTypeList, PlayerREF, 1000.0)String Clue = closestClue.GetBaseObject()	if !closestClue		Debug.MessageBox("No Clue Found")	elseif closestClue		Debug.MessageBox("Clue =" + Clue + "")		HISClueFinderEffectShader.Play(closestClue, 6.0)	endifendEvent
User avatar
Alex Vincent
 
Posts: 3514
Joined: Thu Jun 28, 2007 9:31 pm

Post » Tue May 07, 2013 3:38 am

Ok so upon further testing it works on statics just fine, but not invisible activators. I need invisible activators! lol.
User avatar
Vincent Joe
 
Posts: 3370
Joined: Wed Sep 26, 2007 1:13 pm

Post » Mon May 06, 2013 10:09 pm

How are you making it invisible?

Couldn't you just texture it with something and give it a NiAlphaProperty with full alpha (i.e. transparent)?

User avatar
butterfly
 
Posts: 3467
Joined: Wed Aug 16, 2006 8:20 pm


Return to V - Skyrim