NPCs can get on and off chairs
The Y Position of an NPC when moving is now a Single (instead of an integer), allowing for NPCs to climb on and off chairs without their Y Position being rounded down.
This commit is contained in:
parent
425a336401
commit
073ed91356
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue