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



Introduced in

Version:2.21

Description

Description:Defines the movement limits for weapons controlled using deployWeapon.

Syntax

Syntax:unit setDeployedWeaponLimits [left, right, up, down]
Parameters:
  • unit: Object - Unit with deployed weapon.
  • left: Number - Minimum angle to the left (in degrees).
  • right: Number - Maximum angle to the right (in degrees).
  • up: Number - Maximum upward angle (in degrees).
  • down: Number - Minimum downward angle (in degrees).
Return Value:Nothing

Examples

Examples:
Allow weapon to be moved 45 degrees to the left and right, and 30 degrees up and down:
player setDeployedWeaponLimits [-45,45, 30,-30]

Additional Information

See also: getDeployedWeaponLimits, deployWeapon
Multiplayer:
Problems:

Notes