mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Update Controllable.lua
Fixing this error Line 26056: attempt to index local '_coord' (a nil value) in this line, local _tocoord=_coord:GetRandomCoordinateInRadius(_radius,100)
This commit is contained in:
parent
12b596a47f
commit
2fc7a3b542
@ -4263,6 +4263,9 @@ function CONTROLLABLE:RelocateGroundRandomInRadius( speed, radius, onroad, short
|
||||
self:F2( { self.ControllableName } )
|
||||
|
||||
local _coord = self:GetCoordinate()
|
||||
if not _coord then
|
||||
return self
|
||||
end
|
||||
local _radius = radius or 500
|
||||
local _speed = speed or 20
|
||||
local _tocoord = _coord:GetRandomCoordinateInRadius( _radius, 100 )
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user