Jump to content

adding fatigue damage to fists


TheBlob2

Recommended Posts

ive been fiddling around the game settings in the geck for a few hours trying to add fatigue damage to fists but to no avail. it seems the only way of adding fatigue damage to fists is with perks but i want npc fists to do fatigue damage aswell. it seems i may need to make a script for this, but one already exists, the boxing gloves KO script. i tried to add the script to the fists weapon in the geck. but it doesnt work. what does the fist weapon do? and how do i apply scripts to fists?

Link to comment
Share on other sites

You're right, adding the boxing gloves script doesn't seem to work. Odd, really.

 

But what does work is using an event handler, a new feature in NVSE 4.6. Look here for details.

 

You want to set up a handler to call a function whenever an OnHitWith event happens in the game.

 

This user defined function will deal fatigue damage to all actors and non-robotic creatures when the event occurs:

ScriptName HitWithScript
reference rTarget
reference rWeapon

Begin _Function { rTarget, rWeapon }
    If rTarget.IsActor || ( rTarget.GetIsCreature && rTarget.GetIsCreatureType 6 != 1 )
        rTarget.DamageActorValue Fatigue 100
    EndIf
End

This regular quest script will set up the handler every time the game loads:

ScriptName BeginScript

Begin GameMode
    If GetGameLoaded
        SetEventHandler "OnHitWith" HitWithScript "object"::Fists
    EndIf
End

To use this, you will need the latest version of NVSE, currently 4.6 beta.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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