SetCameraHeight(object, float)

From NWN Lexicon
Jump to navigationJump to search

Sets the camera to a certain height

void SetCameraHeight(
    object oPlayer,
    float fHeight = 0.0f
);

Parameters

oPlayer
Player to move the camera of
fHeight
Height of camera (Default: 0.0f)


Description

Forces this player's camera to be set to this height. Setting this value to zero will restore the camera to the racial default height.


Remarks

It is known that if the camera shakes (via. a variety of VFX - such as the one used for Earthquake) it resets the camera height so this is primarily useful for cutscene camera scripting, else has to be reapplied frequently in case the camera is reset. It could be considered a bug.

Currently unknown if this can accomplish more than the SetCameraFacing command's distance parameter.

Currently unknown what will happen if a height that isn't valid is used.


Version

1.61

See Also

functions: 

SetCameraFacing



 author: Lilac Soul