RAGE.Game.Cam.SetCamActiveWithInterp

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

Syntax

RAGE.Game.Cam.SetCamActiveWithInterp(int cameraTo, int cameraFrom , int delayInMs, int easeLocation, int easeRotation)

Example

Required Arguments

  • cameraTo: int cameraTo
  • delayInMs: int delayInMs
  • easeLocation: int easeLocation
  • easeRotation: int easeRotation

Example

C# Syntax
C.png

Parameters

  • toggle: Bool toggle

Example

public void activateChat(bool toggle)
{
    int cameraTo = RAGE.Game.Cam.CreateCamWithParams("DEFAULT_SCRIPTED_CAMERA", targetX, targetY, targetZ + 2350f, rotX, rotY, rotZ, 2, false, 0);
    RAGE.Game.Cam.SetCamActive(cameraTo, true);
    RAGE.Game.Cam.SetCamFov(cameraTo, 5.0f);
    RAGE.Game.Cam.PointCamAtEntity(cameraTo, player.Handle, 0f, 0f, 0f, true);

    RAGE.Game.Cam.SetCamActiveWithInterp(cameraTo, camera, 1500, 4, 1);
}


See also