mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Update Target.lua
This commit is contained in:
parent
1e0a0f8dc5
commit
75be2fc0ba
@ -707,8 +707,8 @@ function TARGET:GetTargetVec3(Target)
|
||||
local object=Target.Object --Wrapper.Group#GROUP
|
||||
|
||||
if object and object:IsAlive() then
|
||||
|
||||
return object:GetVec3()
|
||||
local vec3=object:GetVec3()
|
||||
return vec3
|
||||
|
||||
else
|
||||
|
||||
@ -721,7 +721,8 @@ function TARGET:GetTargetVec3(Target)
|
||||
local object=Target.Object --Wrapper.Unit#UNIT
|
||||
|
||||
if object and object:IsAlive() then
|
||||
return object:GetVec3()
|
||||
local vec3=object:GetVec3()
|
||||
return vec3
|
||||
else
|
||||
return nil
|
||||
end
|
||||
@ -731,7 +732,8 @@ function TARGET:GetTargetVec3(Target)
|
||||
local object=Target.Object --Wrapper.Static#STATIC
|
||||
|
||||
if object and object:IsAlive() then
|
||||
return object:GetVec3()
|
||||
local vec3=object:GetVec3()
|
||||
return vec3
|
||||
else
|
||||
return nil
|
||||
end
|
||||
@ -741,7 +743,8 @@ function TARGET:GetTargetVec3(Target)
|
||||
local object=Target.Object --Wrapper.Scenery#SCENERY
|
||||
|
||||
if object then
|
||||
return object:GetVec3()
|
||||
local vec3=object:GetVec3()
|
||||
return vec3
|
||||
else
|
||||
return nil
|
||||
end
|
||||
@ -750,7 +753,8 @@ function TARGET:GetTargetVec3(Target)
|
||||
|
||||
local object=Target.Object --Wrapper.Airbase#AIRBASE
|
||||
|
||||
return object:GetVec3()
|
||||
local vec3=object:GetVec3()
|
||||
return vec3
|
||||
|
||||
--if Target.Status==TARGET.ObjectStatus.ALIVE then
|
||||
--end
|
||||
@ -759,7 +763,8 @@ function TARGET:GetTargetVec3(Target)
|
||||
|
||||
local object=Target.Object --Core.Point#COORDINATE
|
||||
|
||||
return {x=object.x, y=object.y, z=object.z}
|
||||
local vec3={x=object.x, y=object.y, z=object.z}
|
||||
return vec3
|
||||
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user