Animatedblock faces camera if modelid = 3

This commit is contained in:
Jasper "JappaWakka" Speelman 2022-07-23 19:52:28 +02:00
parent 630f8d3b3a
commit 2dd64aa7be
1 changed files with 7 additions and 0 deletions

View File

@ -163,6 +163,13 @@
End Function
Public Overrides Sub UpdateEntity()
If Me.BaseModel Is BaseModel.getModelbyID(3) Then
If Me.Rotation.Y <> Screen.Camera.Yaw Then
Me.Rotation.Y = Screen.Camera.Yaw
CreatedWorld = False
End If
End If
If Not Animations Is Nothing Then
For n = 0 To Animations.Count - 1
Animations(n).Update(0.01)