mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Implement POSITIONABLE:GetRadio() and small fixes in Radio.lua
This commit is contained in:
@@ -432,7 +432,11 @@ function POSITIONABLE:Message( Message, Duration, Name )
|
||||
return nil
|
||||
end
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
--- Create a @{Radio#RADIO}, to allow radio transmission for this POSITIONABLE
|
||||
-- Set parameters with the methods provided, then use @{Radio#RADIO.Broadcast} to actually broadcast the message
|
||||
-- @param self
|
||||
-- @return #RADIO
|
||||
function POSITIONABLE:GetRadio()
|
||||
local Radio = RADIO.New(self)
|
||||
return Radio
|
||||
end
|
||||
Reference in New Issue
Block a user