scn ZoomScript
short DefaultValue
short SpecificValue
ref Self
ref Base
Begin OnLoad
set Self to GetSelf
set Base to Self.GetContainer
End
Begin OnEquip Player
set SpecificValue to [Wert des Gamesettings, den der Bogen haben soll]
set DefaultValue to [URL=http://cs.elderscrolls.com/constwiki/index.php/GetGameSetting]GetGameSetting[/URL] fArrowFOVZoom
SetNumericGameSetting fArrowFOVZoom SpecificValue
End
Begin OnUnequip Player
SetNumericGameSetting fArrowFOVZoom DefaultValue
End
Begin Gamemode
if ( [URL=http://cs.elderscrolls.com/constwiki/index.php/GetGameLoaded]GetGameLoaded [/URL] == 1 ) && ( Player.GetEquipped Base == 1 )
if ( GetGameSetting fArrowFOVZoom != SpecificValue )
set DefaultValue to GetGameSetting fArrowFOVZoom
SetNumericGameSetting fArrowFOVZoom SpecificValue
endif
endif
End