How to register a event when a actor swings a weapon

Post » Tue Jun 19, 2012 5:09 am

Hi,

I'm looking to somehow fire off an event in a script when a Actor (NPC or the player) performs a attack with a melee weapon (even if it misses).

It seems like there is no standard OnEvent() fired for this situation.

I tried to register for a character animation event, for several animations (block, attack, equip, etc) but these never actually fire the OnAnimEvent().

Roughly what I'm trying to do is to have the ability to spawn projectiles on a melee weapon swing, or have a item the player equips and activates to cause a specific effect.

Is there a clean way to do this? I'm hoping to avoid hacky work arounds :(

Thanks
User avatar
Kelli Wolfe
 
Posts: 3440
Joined: Thu Aug 23, 2007 7:09 am

Post » Mon Jun 18, 2012 7:29 pm

No, you can't. OnAnimEvent() cannot register ActionEvent like that. It is used mostly for Quest-related events (like Werewolf transformation, etc...)
You gotta wait for SKSE to be able to catch such event
User avatar
KRistina Karlsson
 
Posts: 3383
Joined: Tue Jun 20, 2006 9:22 pm

Post » Tue Jun 19, 2012 12:16 am

Thanks,

Hacky workarounds are go!
User avatar
Tom Flanagan
 
Posts: 3522
Joined: Sat Jul 21, 2007 1:51 am


Return to V - Skyrim