Jump to content

Recommended Posts

Posted

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!

Posted

thank you for quick response, but it seems, will not work, cause GetDevice isn't visible and no matter what arguments I will use

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...