BIS_fnc_vectorFromXToY

From Bohemia Interactive Community
Revision as of 18:03, 30 May 2018 by Lou Montana (talk | contribs) (Page filling)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Introduced with Arma 2 version 1.00
  

Click on the images for descriptions

Introduced in

Game:
Arma 2
Version:
1.00

Description

Description:
Returns a unit vector that 'points' from vector1 to vector2. This is a very useful function as it can be used with the velocity command to move an object from one position to another (i.e vector1 to vector2).
ensure both positions are found using getPosASL.

Syntax

Syntax:
[vector1, vector2] call BIS_fnc_vectorFromXToY
Parameters:
vector1: Array
vector2: Array
Return Value:
Array

Examples

Example 1:
_resultVector = [getPosASL vehicle player, getPosASL airTarget] call BIS_fnc_vectorFromXToY;

Additional Information

Execution:
call
Multiplayer:
-
See also:
velocitysetVelocityvectorAdd

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section