enderalse/source/scripts/_00e_fs_heavysaddlesc.psc

31 lines
760 B
Plaintext

Scriptname _00E_FS_HeavySaddleSC extends ObjectReference
Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer)
if akNewContainer == Game.GetForm(0x14)
if PlayerHorse.GetActorBase().GetOutfit() != _00E_FS_HeavySaddleOutfit
_00E_FS_SaddleEquipped.Show()
PlayerHorse.GetActorBase().SetOutfit(_00E_FS_HeavySaddleOutfit)
PlayerHorse.SetOutfit(_00E_FS_HeavySaddleOutfit)
PlayerHorse.SetActorValue("speedMult", PlayerHorse.GetAV("speedMult")*1.20)
akNewContainer.RemoveItem(_00E_FS_HeavySaddleItem, 1)
endif
endIf
endEvent
Message Property _00E_FS_SaddleEquipped Auto
Actor Property PlayerHorse Auto
Outfit Property _00E_FS_HeavySaddleOutfit Auto
Armor Property _00E_FS_HeavySaddleItem Auto