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.GetPlayer()
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)
Game.GetPlayer().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