turretLockOn (VBS2)

From Bohemia Interactive Community

Jump to: navigation, search
Editors, please check Policy: Scripting Command Page Syntax.
Introduced in Virtual Battlespace 2 version 1.19

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

+ Add Note

Only post proven facts here. Use the talk page or the forums for discussions.

Notes

Requires the object to have memory points "muzzle" & "chamber" defined, in order to work properly. --Kronzky 07:04, 24 July 2008 (CEST)

Bottom Section

Personal tools
Buy ArmA now!