Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:2.00

Description

Description:

Sets the camera shake parameters.

Note: Does not have any effect, if unit shake is started with addCamShake.

Syntax

Syntax:setCamShakeParams [posCoef, vertCoef, horzCoef, bankCoef, interpolation]
Parameters:
  • posCoef: Number - Strength of positional movement (how far the whole position can change in X,Y,Z), should not be bigger than 0.1, or the camera might move into, or behind, the player.
  • vertCoef: Number - Strength of vertical camera pan (up / down), practical range: 0-10.
  • horzCoef: Number - Strength of horizontal camera pan (left / right), practical range: 0-10.
  • bankCoef: Number - Strength of camera tilt / bank, practical range: 0-20.
  • interpolation: Boolean - If true, then transitions in the different shaking directions are smoother.
Return Value:Nothing

Examples

Examples: setCamShakeParams [.1, 1, 1, 1, true];

Additional Information

See also: addCamShake
Multiplayer:
Problems:

Notes