EntityOrder problems? Typical....

Blitz3D Forums/Blitz3D Beginners Area/EntityOrder problems? Typical....

The old second camera trick works for me.

Create a second camera and position it far away from your arena using similar code to that below. Parent the gun to the camera in the same relative position as it would be to the player character's main camera. When the player character rotates, also rotate the second camera to get correct lighting on the gun.

Global HUD_camera

Function CreateHUD()
; -- Setup HUD camera
HUD_camera = CreateCamera()
PositionEntity HUD_camera, 0.0, -500.0, 0.0
CameraRange HUD_camera, 0.2, 3.0
CameraZoom HUD_camera, 1.6
CameraClsMode HUD_camera, False, True
EntityOrder HUD_camera, -1
End Function