getGroundIntercept (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.00
Description
- Description:
- Returns the ground intercept point (position) along the specified direction.
Syntax
- Syntax:
- _intercept = origin getGroundIntercept direction
- Parameters:
- origin: Object or PositionAGL
- direction: Vector3D
- Return Value:
- PositionASL
Examples
- Example 1:
_intercept = player getGroundIntercept (player weaponDirection (primaryWeapon player))
Additional Information
- Multiplayer:
- Behaviour unknown.
- See also:
- getGroundInterceptASL

