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.
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.
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.
Actually I've just tried with "Aimed" archetype and the shader effects are working as expected. Thanks for the tips, I'll check them.
Just checked: OnSpellCast() doesn't fit my purposes. GetGetCurrentCrosshairRef() is a SKSE which I don't want to use.
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