mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-04-08 18:35:09 +02:00
Animatedblock faces camera if modelid = 3
This commit is contained in:
parent
630f8d3b3a
commit
2dd64aa7be
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user