Enderal SE https://mod.pub/enderal-se/38-enderal-se
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
850 B
32 lines
850 B
Scriptname _00E_CameraControl Hidden
|
|
|
|
Function LockVanityCamera() Global
|
|
|
|
Actor PlayerREF = Game.GetForm(0x14) as Actor
|
|
float fMinDist = 150.0
|
|
|
|
if SKSE.GetVersion()
|
|
float fCameraMaxDistance = Utility.GetIniFloat("fVanityModeMaxDist:Camera")
|
|
PlayerREF.SetActorValue("Variable04", fCameraMaxDistance)
|
|
fMinDist = Utility.GetIniFloat("fVanityModeMinDist:Camera")
|
|
else
|
|
PlayerREF.SetActorValue("Variable04", 600.0)
|
|
endif
|
|
|
|
Utility.SetINIFloat("fVanityModeMaxDist:Camera", fMinDist)
|
|
|
|
EndFunction
|
|
|
|
Function UnlockVanityCamera() Global
|
|
|
|
Actor PlayerREF = Game.GetForm(0x14) as Actor
|
|
float fCameraMaxDistance = PlayerREF.GetActorValue("Variable04")
|
|
|
|
if fCameraMaxDistance <= 0
|
|
fCameraMaxDistance = 600.0
|
|
endif
|
|
|
|
Utility.SetINIFloat("fVanityModeMaxDist:Camera", fCameraMaxDistance)
|
|
PlayerREF.SetActorValue("Variable04", 0)
|
|
|
|
EndFunction
|
|
|