Making Target Look at Spell Effect

Post » Thu Aug 22, 2013 4:24 am

I have an Aimed Area custom spell that uses a projectile to stick a light ball on a wall, pillar etc.

The Area Effect emanates from the impact point on the wall and causes the target to look at the caster, then continue for two seconds before the area effect kicks in and causes them to freeze.

But I want them to look at the light ball rather than at me.

Is there any way I can do this, maybe by using a script to find the x, y, z position of the light ball and make the targets face that direction and look at it, instead of using akTarget.SetLookAt(akcaster, true)?

Event    OnEffectStart(Actor akTarget, Actor akCaster)              akTarget.SetLookAt(akCaster, true)              Utility.Wait(2.0)              akTarget.EnableAI(false)              Target == akTargetEndEvent

Cheers!

User avatar
Chris Jones
 
Posts: 3435
Joined: Wed May 09, 2007 3:11 am

Return to V - Skyrim