Jump to content

Increase move speed while crouching.


missaka

Recommended Posts

Guys, im trying to create an armor that increase move speed ONLY when the player is crouching.

 

i've created a perk (DarpaSMkllPerk) with the follow setups:

- TRAIT/PLAYABLE/HIDDEN unchecked
- LEVEL 0
- NUM RANKS 1
- NO CONDITIONS
- PERK ENTRIES: Rank 1 / Priority 0 / Entry Point (modify run speed multiply value * 3) / condition IsSneaking == 1.

Then i created a script to attach in armor. It should give me the perk DarpaSMkllPerk when equipped and remove the perk when unequipped.

scn DarpaSuitScript

BEGIN OnEquip
player.AddPerk DarpaSMkllPerk
End

BEGIN OnUnequip
player.RemovePerk DarpaSMkllPerk
End

But...simply doesnt work. I cant find the problem...

Edited by missaka
Link to comment
Share on other sites

Guys, im trying to create an armor that increase move speed ONLY when the player is crouching.

 

i've created a perk (DarpaSMkllPerk) with the follow setups:

- TRAIT/PLAYABLE/HIDDEN unchecked

- LEVEL 0

- NUM RANKS 1

- NO CONDITIONS

- PERK ENTRIES: Rank 1 / Priority 0 / Entry Point (modify run speed multiply value * 3) / condition IsSneaking == 1.

 

Then i created a script to attach in armor. It should give me the perk DarpaSMkllPerk when equipped and remove the perk when unequipped.

scn DarpaSuitScript

BEGIN OnEquip
player.AddPerk DarpaSMkllPerk
End

BEGIN OnUnequip
player.RemovePerk DarpaSMkllPerk
End

But...simply doesnt work. I cant find the problem...

yes...i know that, but sadly the speed doesnt change...r.srsrsr the script seems ok to me....i cant imagine what's going wrong.

Link to comment
Share on other sites

To debug, you could even just print a simple line on console (assuming you're running NVSE. If you're not, it could be a good occasion to do it)

BEGIN OnEquip
player.AddPerk DarpaSMkllPerk
PrintC "I have the perk"
End

BEGIN OnUnequip
player.RemovePerk DarpaSMkllPerk
PrintC "the perk was removed"
End
Link to comment
Share on other sites

Ok, finally I got it. I used this script and had to remove the armor of my inventory and place it there again to work correctly (I did not know it was necessary).

scn DarpaSuitScript

Begin OnEquip player
player.addperk DarpaPerk
End

Begin OnUnequip player
player.removeperk DarpaPerk
End
 
Link to comment
Share on other sites

  • Recently Browsing   0 members

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