Hey guys, started some modding, as a begining want to rework perk trees, wanted to add Heavy Armor skill exp on unarmed hit(using a heavy glove), hadnt found any non-script methods for this, so below is my script, and i have no ideas if it is working(in-game check shows that it works, but kinda not always)
Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked)
If akAggressor == Game.GetPlayer()
If (Game.GetPlayer().GetEquippedItemType(1) == 0)
If (abHitBlocked == true)
Game.AdvanceSkill("HeavyArmor", 5)
elseif (abHitBlocked == false)
Game.AdvanceSkill("HeavyArmor", 7)
endif
endif
endif
Endevent
Script is added to a mgef which is to ability(constant\self) which is to perk
Help me please