Is the akProjectile part of on hit event broken?

Post » Wed Jun 20, 2012 8:39 pm

So when I run the following script and I am hit with arrows I get the message "arrow NONE"


Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked)actor attacker = akAggressor as actor;power attacks do not work with bows ?if (Attacker.GetEquippedItemType(1) == 7) && abBashAttack == falsedebug.messagebox("arrow  " + akProjectile)endifendevent


"NONE" ?

Is the akProjectile part of on hit event broken?

Or am I not understanding "something"?
User avatar
Tiff Clark
 
Posts: 3297
Joined: Wed Aug 09, 2006 2:23 am

Post » Thu Jun 21, 2012 3:44 am

If I recall correctly, the arrow part didn't work, but you can solve it by checking if akAgressor has a bow equiped.
User avatar
Sabrina garzotto
 
Posts: 3384
Joined: Fri Dec 29, 2006 4:58 pm


Return to V - Skyrim