I'm not completely fluent in papyrus yet, but I'm trying to learn a few things. I'm specifically having trouble trying to make a spell where the npc goes ragdoll and then gets pulled to you. I can make them go ragdoll, but the issue I am having with is getting them to come towards you. I'd appreciate it if someone could take a look at my script and let me know if I'm just doing things completely incorrect and what corrections I need to make to get the effect to happen. Scriptname PullEnemies extends activemagiceffect
Keyword Property NPCPull Auto
Event OnEffectStart (Actor target, Actor caster)
if (target.HasKeyword(NPCPull))
Game.GetPlayer().PushActorAway(target, 0)
target.ApplyHavokImpulse (0, 0, 0, 0)
target.TranslateToRef (Game.GetPlayer(), 500)
endif
EndEvent
The ApplyHavokImpulse part makes the npc go ragdoll. And then the TranslateToRef is supposed to draw the npc towards you, which it does. But it does so in a very unrealistic manner. It's like the npc is cycling animations and just floats in a straight line towards you. Currently, the casting type is Concentration and the delivery is Target Actor