vectorDir

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Armed Assault version 1.00
  Arguments of this scripting command don't have to be local to the client the command is executed on

Click on the images for descriptions

Introduced in

Game:
Armed Assault
Version:
1.00

Description

Description:
Return object's normalized direction vector in world space ([x,y,z]).
  • A unit facing North would return [0,1,0]
  • A unit facing East would return [1,0,0]
  • A unit facing South would return [0,-1,0]
  • A unit facing West would return [-1,0,0]

Syntax

Syntax:
vectorDir objectName
Parameters:
objectName: Object
Return Value:
Array - format Vector3D

Examples

Example 1:
_dirVector = vectorDir _unit;

Additional Information

Multiplayer:
-
See also:
vectorDirVisualvectorUpsetVectorDirsetVectorUpsetVectorDirAndUpvectorDiffvectorAddvectorMultiplyvectorCrossProductvectorDistancevectorMagnitudeSqrvectorDistanceSqrvectorCosvectorMagnitudevectorDotProductvectorNormalizedvectorFromTo

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