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


Introduced in

Version:2.10

Description

Description:Sets the PRF code for a laser scanner.

The unit / vehicle must have the laserScanner parameter (see the General Vehicle Parameters in the VBS3 Developer Reference) set to true, and then be able to see and lock laser targets, regardless of the weapon currently selected, and whether or not the vehicle is equipped with laser-capable weapons. The AI does only engage laser targets that have a matching PRF code. See setPRF article for limitations on allowed PRF codes.

Syntax

Syntax:object setScannerPRF code
Parameters:
  • object: Object - Unit / vehicle with a laser scanner.
  • code: Number - PRF code that the scanner should look for (default: 1111).
Return Value:Boolean - If the PRF code cab be assigned, true is returned; if the code is invalid, or the vehicle does not have a laser scanner, false is returned.

Examples

Examples:
_set = tank1 setScannerPRF 1234;

Additional Information

See also: getScannerPRF, setPRF
Multiplayer:
Problems:

Notes