
So, once again I ask, is there an easy way to do it?
EDIT: http://www.tesnexus.com/downloads/file.php?id=33331
Ref Targetfloat fquestdelaytimebegin gamemodeset fquestdelaytime to .01;(may work with 0.1) if player.isattacking == 1 && player.iscasting == 0 set Target to GetCrosshairRef if Taget != 0 if Target.isactor == 1 if ( Target.IsAnimPlaying + Target.IsIdlePlaying ) > 0; checks for a BUNCH of issues such as if the actor is unconscious and many other potential problems. Not perfect but works most of the time. if target.getsoundplaying "*hit* > 0 && ( player.GetHeadingAngle target > -20 ) && ( player.GetHeadingAngle target < 20 ) target.playsound3d MySound endif endif endif endif endifend
Ref Targetfloat fquestdelaytimebegin gamemodeset fquestdelaytime to .01;(may work with 0.1) if player.isattacking == 1 && player.iscasting == 0 set Target to GetCrosshairRef if Taget != 0 if Target.isactor == 1 if ( Target.IsAnimPlaying + Target.IsIdlePlaying ) > 0; checks for a BUNCH of issues such as if the actor is unconscious and many other potential problems. Not perfect but works most of the time. if target.getsoundplaying "*hit* > 0 && ( player.GetHeadingAngle target > -20 ) && ( player.GetHeadingAngle target < 20 ) target.playsound3d MySound endif endif endif endif endifend