Jump to content

DOWNLOAD MODS

Are you looking for something shiny for your load order? We have many exclusive mods and resources you won't find anywhere else. Start your search now...

LEARN MODDING

Ready to try your hand at making your own mod creations? Visit the Enclave, the original ES/FO modding school, and learn the tricks of the trade from veteran modders...

JOIN THE ALLIANCE

Membership is free and registering unlocks image galleries, project hosting, live chat, unlimited downloads, & more...

Making Spell Targets Look at Spell Effect


Shadowblade
 Share

Recommended Posts

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 as an explosion 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 in place.

 

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?

 

I'm a complete Noob at this, so I really need some help.

 

 

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

 

This makes them look at me and after 2 seconds closing to attack they freeze in place. The 2 second delay makes it look a little more natural.

 

But I would REALLY prefer them to look at the light ball and then freeze in place as if mesmerised.

 

 

Cheers!

 

~.~

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...