mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-27 07:44:31 +02:00
Reset Camera speed for run or ride in scripts
This commit is contained in:
parent
b91a5f586f
commit
2e0966dd04
@ -445,9 +445,9 @@ Public Class OverworldCamera
|
|||||||
Speed = 0.04F
|
Speed = 0.04F
|
||||||
ElseIf Core.Player.IsRunning() = True Then
|
ElseIf Core.Player.IsRunning() = True Then
|
||||||
Speed = 0.06F
|
Speed = 0.06F
|
||||||
Else
|
Else
|
||||||
Speed = 0.04F
|
Speed = 0.04F
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
Screen.Level.OverworldPokemon.MoveSpeed = Speed
|
Screen.Level.OverworldPokemon.MoveSpeed = Speed
|
||||||
End Sub
|
End Sub
|
||||||
|
@ -101,6 +101,9 @@ nextScript:
|
|||||||
''' <param name="InputType">Type of information; 0: Script path, 1: Text, 2: Direct input.</param>
|
''' <param name="InputType">Type of information; 0: Script path, 1: Text, 2: Direct input.</param>
|
||||||
Public Sub StartScript(ByVal Input As String, ByVal InputType As Integer, Optional ByVal CheckDelay As Boolean = True, Optional ByVal ResetInsight As Boolean = True)
|
Public Sub StartScript(ByVal Input As String, ByVal InputType As Integer, Optional ByVal CheckDelay As Boolean = True, Optional ByVal ResetInsight As Boolean = True)
|
||||||
Screen.Level.OwnPlayer.Opacity = 1
|
Screen.Level.OwnPlayer.Opacity = 1
|
||||||
|
If Core.Player.IsRunning = True OrElse Screen.Level.Riding = True Then
|
||||||
|
Screen.Camera.Speed = 0.04F
|
||||||
|
End If
|
||||||
ScriptLevelIndex += 1
|
ScriptLevelIndex += 1
|
||||||
|
|
||||||
TempSpin = False
|
TempSpin = False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user