Hello!
I'm not very familiar with programming, so hope for understanding)
How can I use the function GetDevice(ID) in LUA predicate trigger condition?
When I start my mission with this LUA predicate code
local dev = GetDevice(20):get_frequency()
local tune = (math.abs(dev-116000000)) <= 1999
return tune
the following error is occurs:
... attempt to call global 'GetDevice' (a nil value) ...
How to make this function being visible in LUA predicate? Please help!