enderalse/source/scripts/_00e_fs_heavysaddlesc.psc

31 lines
760 B
Plaintext
Raw Normal View History

Scriptname _00E_FS_HeavySaddleSC extends ObjectReference
Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer)
2021-10-05 22:22:24 +00:00
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
2021-10-05 22:22:24 +00:00
Outfit Property _00E_FS_HeavySaddleOutfit Auto
Armor Property _00E_FS_HeavySaddleItem Auto