HudSetCameraActorAdvanced

void HudSetCameraActorAdvanced(int tid, int flags)

This is a HUD Library function.

Description

Sets camera position and direction to match those of the specified actor. Advanced version of SetHudCameraActor.

Takes the following flags:

HUD_CAMERAACTOR_NOPOSITION – don't call HudSetCameraPosition.

HUD_CAMERAACTOR_NODIRECTION – don't call HudSetCameraDirection.

HUD_CAMERAACTOR_NOPREDICTION – don't try to shift camera position based on actor speed to minimize positioning artifacts caused by 35 fps rendering.

HUD_CAMERAACTOR_NOVIEWHEIGHT – don't take the actor's view height into account.

Use | operator to combine flags (e.g HUD_CAMERAACTOR_NOPREDICTION | HUD_CAMERAACTOR_NOVIEWHEIGHT).

See HudSetCameraActorAdvanced for what tweaks this function performs.

Examples

while (IsPlaying())
{
HudResetState();
HudSetCameraActor(0);
Draw3DStuff();
Delay(1);
}