Jump to content

Recommended Posts

Posted (edited)

Beginner for now I'm just trying to get a message on the screen to see if my instance is called, but it displays nothing with the M2000C module.

 

 

 

Mods\aircraft\M-2000C\Cockpit\devices.lua

devices["TEST"] = counter()

 

Mods\aircraft\M-2000C\Cockpit\device_init.lua

creators[devices.TEST] = {"avLuaDevice" ,LockOn_Options.script_path.."test_device.lua"}

 

Mods\aircraft\M-2000C\Cockpit\test_device.lua

dofile(LockOn_Options.script_path.."command_defs.lua")
dofile(LockOn_Options.script_path.."devices.lua")

local dev = GetSelf()

local update_time_step = 0.1

local sensor_data = get_base_data()

make_default_activity(update_time_step)


function post_initialize ()
print ("post_initialize called")
end

function update ()
print ("post_initialize called")
end

 

 

After I am a little lost but I create a mission and I never have any message that appears on the screen

 

Thank you for your help

Edited by k4riM
Posted

if you want to start messing around modding i suggest using the a4 or 339 for such tests. Much more repeatable results

'controlling' the Ka50 feels like a discussion with the Autopilot and trim system about the flight direction.

Posted

print() is an internal message call. You are looking for print_message_to_user() which appears in the top right corner.

  • Recently Browsing   0 members

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