Jump to content

[Help] Mod to play a sound when *certain* body parts are hit/crippled.


Alanedelawn

Recommended Posts

I want to take the files from the MY EYES mod and make it so they only play when the legs/head are hit(%chance) or crippled(guaranteed chance), as opposed to playing anytime you are hit/take damage. the mod in its original state seems to just be a voice line replacement. So, I can only assume ill have to write a script from the ground up?

Link to comment
Share on other sites

You need to make an event handler with the OnHit block:

https://geckwiki.com/index.php/SetEventHandler

 

This has all possible event handler blocks (except the ones JIP made available as their own functions, which you will not be using here). Check the bottom of the page for a link to a tutorial on event handling.

https://geckwiki.com/index.php/Event_Handling

 

You'll need to use these two functions in your UDF script:

https://geckwiki.com/index.php/GetHitLocation

https://geckwiki.com/index.php/GetHitLimbDamage

 

Confused? Good. Come back to me with something and I'll fix it for you when I can.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...