distance
From Bohemia Interactive Community
| Editors, please check Policy: Scripting Command Page Syntax. |
Click on the images for descriptions
Introduced in
- Game:
- Operation Flashpoint
- Version:
- 1.00
Description
Syntax
- Syntax:
- Number = ObjectOrPosition1 distance ObjectOrPosition2
- Parameters:
- ObjectOrPosition : Object or Position
- Return Value:
- Number - Distance in meters.
Examples
- Example 1:
_meters=player distance _object- Example 2:
_meters=player distance [1,2,3]- Example 3:
_meters=[1,2,3] distance player
Additional Information
- Multiplayer:
- Behaviour unknown.
Notes
Notes
Notes
- Posted on Feb 14, 2007 - 12:00
- Sudden Death
- distance to position3D (array) doesnt work with OFP, only objects
Armed Assault: position3D (array) and object works

