Magic Effect with Target Location

Post » Fri Apr 10, 2015 6:38 pm

Hello,

according to the creationkit.com reference:

How can I get the reference of a targeted object?

The OnEffectStart() event only works with actors.

Thank you.

User avatar
jodie
 
Posts: 3494
Joined: Wed Jun 14, 2006 8:42 pm

Post » Sat Apr 11, 2015 4:51 am

You might be able to get it by using an http://www.creationkit.com/OnSpellCast_-_ObjectReference event on the player and then checking what's in the crosshair by using http://www.creationkit.com/Game_Script#SKSE_Global_Functions.

If you're looking for something specific, another option is to use conditions in the magic effect or spell so it only works on particular targets.

User avatar
Lizzie
 
Posts: 3476
Joined: Sun Nov 19, 2006 5:51 am

Post » Sat Apr 11, 2015 12:36 am

Actually I've just tried with "Aimed" archetype and the shader effects are working as expected. Thanks for the tips, I'll check them.

User avatar
Dawn Porter
 
Posts: 3449
Joined: Sun Jun 18, 2006 11:17 am

Post » Fri Apr 10, 2015 6:53 pm

Just checked: OnSpellCast() doesn't fit my purposes. GetGetCurrentCrosshairRef() is a SKSE which I don't want to use.

User avatar
Lawrence Armijo
 
Posts: 3446
Joined: Thu Sep 27, 2007 7:12 pm

Post » Fri Apr 10, 2015 7:16 pm

Ok, I changed the way of the magic effect. It's as "self" now. I used a quest to get alias with matching reference for nearest object with conditions :)

User avatar
Harry Hearing
 
Posts: 3366
Joined: Sun Jul 22, 2007 6:19 am


Return to V - Skyrim

cron