mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Static and Delay
This commit is contained in:
@@ -1185,7 +1185,7 @@ function RANGE:OnEventShot(EventData)
|
||||
|
||||
-- Weapon data.
|
||||
local _weapon = EventData.Weapon:getTypeName() -- should be the same as Event.WeaponTypeName
|
||||
local _weaponStrArray = self:_split(_weapon,"%.")
|
||||
local _weaponStrArray = UTILS.Split(_weapon,"%.")
|
||||
local _weaponName = _weaponStrArray[#_weaponStrArray]
|
||||
|
||||
-- Debug info.
|
||||
|
||||
@@ -3675,6 +3675,8 @@ function WAREHOUSE:_RegisterAsset(group, ngroups, forceattribute, forcecargobay,
|
||||
local SpeedMax=group:GetSpeedMax()
|
||||
local RangeMin=group:GetRange()
|
||||
local smax,sx,sy,sz=_GetObjectSize(Descriptors)
|
||||
|
||||
--self:E(Descriptors)
|
||||
|
||||
-- Get weight and cargo bay size in kg.
|
||||
local weight=0
|
||||
@@ -6379,6 +6381,7 @@ function WAREHOUSE:_CheckRequestValid(request)
|
||||
|
||||
if inwater then
|
||||
self:E("ERROR: Incorrect request. Ground asset requested but at least one spawn zone is in water!")
|
||||
--valid=false
|
||||
valid=false
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user