This Perk Fragment does nothing but compiles clean.

Post » Wed Jun 20, 2012 12:51 am

Game.GetPlayer().StartVampireFeed(aktargetRef as actor)Debug.SendAnimationEvent(akTargetRef as actor, "deathanim")Game.GetPlayer().PushActorAway(akTargetRef as actor, 0)DVampireQuest.VampireFeed()

I created a new VampireFeed perk. It goes along side the vanilla one. The idea for this one is to allow Feeding on NPCs in general. I through the DeathAnim in there just to see if calling out an animation this way would work.

The conditions for the Perk is that the owner must be 'IsSneaking' and the target must have the keyword ActorTypeNPC.

If I'm sneaking and I use the target I get a dialog box with my set option as a choice next to pickpocket. However when I click the Feed/Bite option nothing happens. The dialog box just disappears. I tried renaming the script fragment but it made no difference. The script fragment compiles with no failures but in game it does nothing.
User avatar
darnell waddington
 
Posts: 3448
Joined: Wed Oct 17, 2007 10:43 pm

Post » Tue Jun 19, 2012 11:36 pm

Update:

I got something to happen. The Feed timer in the DVampireQuest script updates correctly and the target falls as a ragdoll. However the death animation doesn't play on the PC. I guess thats because I'm sending the animation to play on the target instead of myself. How do I call out an animation to play on myself? Such as a killmove.
User avatar
Mark
 
Posts: 3341
Joined: Wed May 23, 2007 11:59 am


Return to V - Skyrim