Vector(float, float, float)

Creates a vector (position) from three points.

vector Vector(
    float fX = 0.0f,
    float fY = 0.0f,
    float fZ = 0.0f
);

Parameters

fX

x point of a triangle. (Default: 0.0f)

fY

y point of a triangle. (Default: 0.0f)

fZ

z point of a triangle. (Default: 0.0f)


Description

Returns a vector with the specified point values of fX, fY, and fZ.



Remarks

A common use for this command is when creating a new Location based on an objects location. Some knowledge of how vectors work is probably good for this purpose.


Version

1.61

See Also

functions: ActionJumpToLocation | AngleToVector | Location | VectorMagnitude | VectorNormalize | VectorToAngle
categories: Movement Functions


 author: Charles Feduke, editor: Lilac Soul