My goal is to get an actor who is close to an activation lever, and then run an effect on them.
I'm completely lost on how to do this... Here is what I have on the level script - looking forward to any guidance.
Scriptname SetEffectxyz extends ObjectReference EffectShader Property FX Auto event OnActivate(ObjectReference akActionRef)ObjectReference FindAct = game.FindClosestReferenceOfTypeFromRef(-NEED HELP FOR REF-, game.GetPlayer(), 10.0)if (FindAct == None) Debug.MessageBox("There is no near")else Debug.MessageBox("Actor Found") DoEffect(FindAct) ' This will need to change from ObjectReference to ActorendifendEventfunction DoEffect(Actor act)FX.Play(act)act.SetAlpha(0.2) endFunctionSo I'd like to find on line 5, the reference of type (Which I imagine is a base type?) within a close proximity of the player.
Then - set a shader effect on that specific actor.
It's been a long time since I script in Oblivion, but I could swear it was easier than this...
Thanks!
