enderalse/source/scripts/_00e_fs_heavysaddlesc.psc

31 lines
768 B
Plaintext
Raw Normal View History

Scriptname _00E_FS_HeavySaddleSC extends ObjectReference
Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer)
2022-08-21 21:04:58 +00:00
if akNewContainer == Game.GetForm(0x14)
2021-10-05 22:22:24 +00:00
if PlayerHorse.GetActorBase().GetOutfit() != _00E_FS_HeavySaddleOutfit
_00E_FS_SaddleEquipped.Show()
PlayerHorse.GetActorBase().SetOutfit(_00E_FS_HeavySaddleOutfit)
PlayerHorse.SetOutfit(_00E_FS_HeavySaddleOutfit)
2023-12-08 02:45:53 +00:00
PlayerHorse.SetActorValue("speedMult", PlayerHorse.GetActorValue("speedMult")*1.20)
2021-10-05 22:22:24 +00:00
2022-08-21 21:04:58 +00:00
akNewContainer.RemoveItem(_00E_FS_HeavySaddleItem, 1)
2021-10-05 22:22:24 +00:00
endif
endIf
endEvent
Message Property _00E_FS_SaddleEquipped Auto
Actor Property PlayerHorse Auto
2021-10-05 22:22:24 +00:00
Outfit Property _00E_FS_HeavySaddleOutfit Auto
Armor Property _00E_FS_HeavySaddleItem Auto