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


Introduced in

Version:1.24

Description

Description:Sets the watch direction and firing arc. In the scenario the AI gunner only watches and engages targets within the allocated arc. Its set for a turrets gunner specified in parameters.

Unlike setWeaponDirection, this command does not require disableGunnerInput in order to be applied.

Syntax

Syntax:[vehicle, turret] setFireArc [direction, siderange, verticalrange, relative]
Parameters:
  • vehicle: Object - Vehicle on which the turret is located.
  • turret: Object - Turret for which specified arc is set.
  • direction: Array - Direction vector, acts as center of current arc.
  • siderange: Number - Horizontal width of arc (left / right).
  • verticalrange: Number - Vertical width of arc (up / down).
  • relative: Boolean - Sets if the direction vector is relative to vehicle orientation.
Return Value:Nothing

Examples

Examples:
[vehicle,[0]] setFireArc [[0,1,0],180,90,false];

Additional Information

See also: fireArc, withinFireArc, disableFireArc
Multiplayer:
Problems:

Notes