Get Attack Target?

Post » Fri Aug 30, 2013 4:27 pm

So, Moving further with my custom armory, I thought about making a bow that would throw people around like Fus Ro Dah - a purely fun wep.

I found out the Push Actor script and it's all right, but how do I set the Target Actor for a weapon hit, so the game knows to push the guy I hit?

Spoiler

PushActorAway(WeaponTARGET, 5.0)

Edit.

Nope, I'm still too stupid to get this done. I found the GetCombatTarget part, but now I have no idea how to make it work in the script. Also I found out that I have no idea of how to set the actor to push the target from ( the weapon user) in the script. (I can't use the Player reference here, because the bow will be wielded by one of the stronger vampires, so the player has to struggle with it before getting it.)

So, in retrospect - the more I know, the less I know. How do I set the actor targets right in a full script?

User avatar
Mark
 
Posts: 3341
Joined: Wed May 23, 2007 11:59 am

Return to V - Skyrim