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


Introduced in

Version:3.2

Description

Description:Assigns a locked target to a unit or vehicle (AI or player). If the target is forced by this command, then the AI unit or player cannot change the lock.

Syntax

Syntax:unit setVehicleLockTarget target
Parameters:
  • unit: Object - Unit, or vehicle with lockable weapon (can only be assigned to the vehicle itself, but not to a specific crew member of that vehicle).
  • target: Object - Object to target. Use objNull to cancel targeting.
Return Value:Nothing

Examples

Examples:
soldierW1 setVehicleLockTarget soldierE1

Additional Information

See also: getVehicleLockTarget, commandTarget
Multiplayer:
Problems:

Notes