# CreateTweenCamera

## Description

Creates an camera tween with a given duration and returns an ID for it. This tween is merely a template that can be applied to multiple cameras or chains at the same time. All tween types share the same ID space, so a camera tween of ID 1 cannot exist at the same time as an object tween with ID 1. You can set multiple parameters for this tween, such as X position and Angle, that will all move from their start values to their end values over the given duration.

## Definition

integer CreateTweenCamera( duration )

UINT agk::CreateTweenCamera( float duration )

CreateTweenCamera( tweenID, duration )

void agk::CreateTweenCamera( UINT tweenID, float duration )

## Parameters

- duration - The duration of the tween in seconds
- tweenID - ID of the tween