diff --git a/P3D/Entites/Other/NPC.vb b/P3D/Entites/Other/NPC.vb index 9a47f54e5..103626e4a 100644 --- a/P3D/Entites/Other/NPC.vb +++ b/P3D/Entites/Other/NPC.vb @@ -657,8 +657,8 @@ Moved = 0.0F MoveY = 0.0F AnimationX = 1 - Me.Position = New Vector3(CInt(Me.Position.X), CInt(Me.Position.Y), CInt(Me.Position.Z)) AnimationDelay = AnimationDelayLength + Me.Position = New Vector3(CInt(Me.Position.X), CSng(Me.Position.Y), CInt(Me.Position.Z)) ChangeTexture() ApplyShaders() Speed = NPC.STANDARD_SPEED diff --git a/P3D/World/ActionScript/V2/ScriptCommands/DoNPC.vb b/P3D/World/ActionScript/V2/ScriptCommands/DoNPC.vb index d58c2bb5f..86938a1c2 100644 --- a/P3D/World/ActionScript/V2/ScriptCommands/DoNPC.vb +++ b/P3D/World/ActionScript/V2/ScriptCommands/DoNPC.vb @@ -100,7 +100,7 @@ End If Case "setmovey" Dim targetNPC As NPC = Screen.Level.GetNPC(int(argument.GetSplit(0))) - Dim steps As Integer = int(argument.GetSplit(1)) + Dim steps As Single = sng(argument.GetSplit(1)) targetNPC.MoveY = steps