Perk Entry: Activate
Conditions-Perk Owner: IsSneaking=1 AND, GetVampireFeed = 0 AND, HasKeyword = "Vampire" AND
Conditions-Targets: IsChild = 0 AND, HasBeenEaten = 0 AND, HasKeyword = "ActorTypeNPC" AND
Game.GetPlayer().StartVampireFeed(aktargetRef as actor)Game.ForceThirdPerson()Game.GetPlayer().PlayIdle(pa_HugA)Utility.Wait(2.5)Game.GetPlayer().PushActorAway(akTargetRef as actor, 0)DVampireQuest.VampireFeed()
I currently have this script fragment running along side the vanilla VampireFeed perk.
For the most part it works. It resets the feed timer in my vampire quest script. It plays the ISM effects. The target even falls limp.
The problem is two-fold. 1. The animation doesn't always play. I can't figure out why. 2. When the animation does play it only plays in the current location the PC is. It does not bring the target in to make the animation look legitimate. Sometimes my character looks like he's hugging air.
There is actually a third problem. The original vampire feed perk is designed to work on sleeping NPCs. With my new perk if an actor is running a package that leads them toward a bed to sleep it will instantly teleport the PC to their bed and play the bed feeding animation.
I'm close to finally adding this to my mod so any help would be great!