missaka Posted June 5, 2015 Share Posted June 5, 2015 (edited) 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 June 5, 2015 by missaka Link to comment Share on other sites More sharing options...
Fallout2AM Posted June 5, 2015 Share Posted June 5, 2015 if you modify the speed multiply, a certain event must happen to apply that. It could be a damage on the leg, or equip / unequip the weapon, or... something else I don't remember right now. Link to comment Share on other sites More sharing options...
missaka Posted June 5, 2015 Author Share Posted June 5, 2015 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 More sharing options...
Fallout2AM Posted June 5, 2015 Share Posted June 5, 2015 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 More sharing options...
missaka Posted June 5, 2015 Author Share Posted June 5, 2015 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 More sharing options...
Recommended Posts