From b6a550a2478294d6f90d094903d265786121bcde Mon Sep 17 00:00:00 2001 From: Frank Date: Mon, 25 Sep 2023 16:59:41 +0200 Subject: [PATCH] Update Vector.lua --- Moose Development/Moose/Core/Vector.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Moose Development/Moose/Core/Vector.lua b/Moose Development/Moose/Core/Vector.lua index 9ed6da217..c6851a369 100644 --- a/Moose Development/Moose/Core/Vector.lua +++ b/Moose Development/Moose/Core/Vector.lua @@ -1001,6 +1001,22 @@ function VECTOR:Flare(Color, Azimuth) return self end + +--- Creates a arrow from this VECTOR to another vector on the F10 map. +-- @param #VECTOR self +-- @param #VECTOR Vector The vector defining the endpoint. +-- @return #VECTOR self +function VECTOR:ArrowToAll(Vector) + + local vec3Start=self:GetVec3() + + + + trigger.action.arrowToAll(coalition , id, vec3Start, vec3End, color, fillColor , lineType, readOnly, "") + + return self +end + ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -- Private Functions -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------