23 lines
680 B
Plaintext
23 lines
680 B
Plaintext
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
|