DeviceCameraType

Family: Image · One form

What it does

DeviceCameraType takes cameraID (an integer), and answers an integer. cameraID is the id of a Camera object, obtained elsewhere in the Image family.

Syntax

DeviceCameraType(cameraID integer) → integer

Parameters

NameType
cameraIDinteger

Every form returns

integer

Example · generated

camera = CreateTweenCamera(1.0)DO  Print(DeviceCameraType(camera))  Sync()LOOP

CreateTweenCamera is there to give the call something to act on; DeviceCameraType is the line that matters. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.

35 commands in Image