Overwriting default behavior when hit

Post » Sun Jul 21, 2013 1:16 am

Hi,

I wrote a script that accomplishes the following: if the player is wearing heavy cuirass and he gets hit by a dagger, his attacker recoils as a result. My idea is to create the impression that the dagger collided with the heavy cuirass and bounced off. This works very well but there are 3 minor annoyances left:

1) Player still bleeds when hit

2) Player still yells/moans/complains when hit

3) The sound of weapon cutting flesh is still played when hit

Question: is it possible to prevent 1)-3)?

I tried temporarily turning the player into a ghost (PlayerRef.SetGhost(True)) but since he can't get hit in that state, I can no longer use the onHit event as the trigger for playing the Recoil iddle.

Thanks for any help.

User avatar
Nichola Haynes
 
Posts: 3457
Joined: Tue Aug 01, 2006 4:54 pm

Return to V - Skyrim