Sets the view angle on the model to a pre-defined camera location.
Sets the view angle on the model to a pre-defined camera location. Camera view angles are defined within the model files and not otherwise available to the scripting system. Some camera indices are standard across most models:
0 - Non-movable camera, focused on the unit's face (if applicable); used by the game engine when rendering portrait textures
1 - Movable camera, showing the entire body of the unit
2 or higher - Movable camera in default position
Signature:
Code
Model:SetCamera(index)
Arguments:
index - Index of a camera view defined by the model file (number)