* Added function to obtain *average* Vec3 of the GROUP
* Added function to obtain *average* Coordinate of the GROUP

#TARGET
* Make use of new coordinate function in GROUP
This commit is contained in:
Applevangelist
2022-10-16 13:37:11 +02:00
2 changed files with 49 additions and 3 deletions

View File

@@ -1141,7 +1141,7 @@ function TARGET:GetTargetVec3(Target)
local object=Target.Object --Wrapper.Group#GROUP
if object and object:IsAlive() then
local vec3=object:GetVec3()
local vec3=object:GetAverageVec3()
if vec3 then
return vec3