detect that a kill move happen without polling?

Post » Thu May 09, 2013 10:39 pm

I thought there was an OnKillMove() function but after looking thru the Wiki....no, only one to detect the kill move that would need polling.

Anyway to detect that a kill move happen without polling?

User avatar
Tiff Clark
 
Posts: 3297
Joined: Wed Aug 09, 2006 2:23 am

Post » Fri May 10, 2013 12:35 am

Aha found an easy solution for this one :P

Scriptname _Test_OnDyingScript extends activemagiceffect  Event OnDying(Actor akKiller)    if akKiller.IsInKillMove()        Debug.Notification("I was killed by a kill move!")    endIfendEvent

Put this in an ability on an actor, and beat him to death in melee. Message only triggered when kill moves occurred. Not sure if this IsInKillMove() applies to situations when the kill cam appears with bow/magic kills though.

User avatar
Jose ordaz
 
Posts: 3552
Joined: Mon Aug 27, 2007 10:14 pm

Post » Thu May 09, 2013 9:37 pm

Sorry man I should have been more clear, I do not want to put scripts on all the actors in the game for the mod I am working on right now.

So it has to work on a player alias script for kills on the other actors.

User avatar
JUan Martinez
 
Posts: 3552
Joined: Tue Oct 16, 2007 7:12 am

Post » Fri May 10, 2013 12:40 am

Only other way I'm aware of is if you set crit chance to 100% and use the OnDeath crit effect for weapons.

But of course that would mean removing the crit chance system and editing every base weapon in the game with this effect.

edit: I only just realized we were talking about kill moves as in the execution animations, derp.

User avatar
BEl J
 
Posts: 3397
Joined: Tue Feb 13, 2007 8:12 am

Post » Thu May 09, 2013 4:28 pm

Damn I suppose that makes it much harder. The OnStoryKillActor event might be too slow/late to catch the kill move. Not sure if RegisterForAnimationEvent could work either as the CK says it doesn't work for all animations.

User avatar
Charity Hughes
 
Posts: 3408
Joined: Sat Mar 17, 2007 3:22 pm

Post » Thu May 09, 2013 10:26 pm

I guess I will look at the store manager and see if anything can be done with that.

User avatar
Crystal Birch
 
Posts: 3416
Joined: Sat Mar 03, 2007 3:34 pm

Post » Fri May 10, 2013 5:48 am

HEY good idea, at least to try... thanks.

Edit:

Looks like these might work according to my animation notes:

RegisterForAnimationEvent(akTarget, "KillMoveEnd")
RegisterForAnimationEvent(akTarget, "KillMoveStart")
Edit: OHHH YAAAAHHH!!! Works like a charm. Thank you to everyone!
User avatar
NEGRO
 
Posts: 3398
Joined: Sat Sep 01, 2007 12:14 am


Return to V - Skyrim