Masterofnet Posted August 5, 2015 Share Posted August 5, 2015 (edited) I have been doing more testing with the event on hit. Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, \ bool abBashAttack, bool abHitBlocked) I can not get this event to register any projectile as a projectile. Hit the actor with a magic projectile from a staff it returns no projectile. In the Wiki it clearly states the event will only register none on akprojectile if the actor is hit with a melee weapon. http://www.creationk...ObjectReference Is there any projectile that this event will not return as None???? There has to be more to this. How could the Wiki state this event will work and it returns None on any projectile??? Is this script wrong?? If Akprojectile == SomeProjectileDebug.Notification("This is a pain in the ***")EndIf This is what is returned on any projectile that I have tested. If !AkprojectileDebug.Notification("This is a pain in the *****")Endif RegardsMasterofnet Edited August 5, 2015 by Masterofnet Link to comment Share on other sites More sharing options...
Kerberus14 Posted August 6, 2015 Share Posted August 6, 2015 (edited) Projectiles shot from bows, spells or crossbows do not trigger onhit events, try experimenting with perk entry points: - Combat hit spell.- Weapon swing. Edited August 6, 2015 by Kerberus14 Link to comment Share on other sites More sharing options...
Masterofnet Posted August 10, 2015 Author Share Posted August 10, 2015 (edited) On 8/6/2015 at 5:47 AM, Kerberus14 said: Projectiles shot from bows, spells or crossbows do not trigger onhit events, try experimenting with perk entry points: - Combat hit spell.- Weapon swing.Combat hit or weapon swing will not register archery. http://www.creationkit.com/Perk_Entry_Point Bow shots do trigger the event on hit but the event will not register the projectile as I stated above. Is there truly no way to get the arrow or arrow projectile that has struck an opponent?? RegardsMasterofnet Edited August 10, 2015 by Masterofnet Link to comment Share on other sites More sharing options...
Kerberus14 Posted August 11, 2015 Share Posted August 11, 2015 (edited) Find a way to enable 100% arrow retrieval if you hit an enemy, then use OnContainerChanged event as an onhit proxy, see if it works that way. If oncontainerchanged does not work, make a cloak spell that adds the onitemadded event to nearby npcs and make it check for projectiles, if they add a projectile and 100% arrow retrieval is enabled then that means they got hit by an arrow. Problem is IDK what happens if they get hit by an arrow other than yours :) Edited August 11, 2015 by Kerberus14 Link to comment Share on other sites More sharing options...
Recommended Posts