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.
23 lines
680 B
23 lines
680 B
4 months ago
|
Scriptname _00E_CameraControl Hidden
|
||
|
|
||
|
Function LockVanityCamera() Global
|
||
|
|
||
|
float fCameraMaxDistance = Utility.GetIniFloat("fVanityModeMaxDist:Camera")
|
||
|
(Game.GetForm(0x14) as Actor).SetActorValue("Variable08", fCameraMaxDistance)
|
||
|
Utility.SetINIFloat("fVanityModeMaxDist:Camera", Utility.GetIniFloat("fVanityModeMinDist:Camera"))
|
||
|
|
||
|
EndFunction
|
||
|
|
||
|
Function UnlockVanityCamera() Global
|
||
|
|
||
|
float fCameraMaxDistance = (Game.GetForm(0x14) as Actor).GetActorValue("Variable08")
|
||
|
|
||
|
if fCameraMaxDistance <= 0
|
||
|
fCameraMaxDistance = 600
|
||
|
endif
|
||
|
|
||
|
Utility.SetINIFloat("fVanityModeMaxDist:Camera", fCameraMaxDistance)
|
||
|
(Game.GetForm(0x14) as Actor).SetActorValue("Variable08", 0)
|
||
|
|
||
|
EndFunction
|