This commit is contained in:
Sven Van de Velde
2016-05-08 16:16:41 +02:00
parent aaa3ab07e3
commit 8ef6ef14dd
6 changed files with 110 additions and 28 deletions

View File

@@ -40,6 +40,17 @@ function ZONE:GetPointVec2()
return Point
end
function ZONE:GetPointVec3( Height )
self:F( self.ZoneName )
local Zone = trigger.misc.getZone( self.ZoneName )
local Point = { x = Zone.point.x, y = land.getHeight( self:GetPointVec2() ) + Height, z = Zone.point.z }
self:T( { Zone, Point } )
return Point
end
function ZONE:GetRandomPointVec2()
self:F( self.ZoneName )