turretLockOn (VBS2)
From Bohemia Interactive Community
| Editors, please check Policy: Scripting Command Page Syntax. |
Click on the images for descriptions
Introduced in
- Game:
- Virtual Battlespace 2
- Version:
- 1.19
Description
- Description:
- Locks a turret onto an object or ASL position.
Syntax
- Syntax:
- vehicle turretLockOn [turretpath, destination]
- Parameters:
- vehicle : Object -
- turretpath: Array -
- destination: PositionASL or Object - Locking is disabled by passing either objNull or [0,0,0]
- Return Value:
- Nothing
Examples
- Example 1:
tank1 turretLockOn [[0],getPosASL tank2]
Additional Information
- Multiplayer:
- Behaviour unknown.
- See also:
- turretWeaponDirection
Notes
Notes
Notes
-
Requires the object to have memory points "muzzle" & "chamber" defined, in order to work properly. --Kronzky 07:04, 24 July 2008 (CEST)

