Jump to content

Saab 340 commands


Mdiaz380
 Share

Recommended Posts

Hi, I am starting to program with Flywithlua some switches.

I started with some lights toggle commands and works perfect.

But I haven’t been able to toggle Prop_sync.

I found some commands on the .obj file, and I found the one for toggle prop sync, but Flywithlua gives an error saying that that command doesn’t exist.

 

Where can I find the “official” comands for the Saab 340?

 

thanks in advance

Link to comment
Share on other sites

6 hours ago, Mdiaz380 said:

Thanks, I also tried that, but it doesn't work.

I get the same message from FWL saying that commane doesn't exist.

 

Later on the day I will copy the exact command I am using.

 

Thanks for the help

The prop sync switch in the Saab does not use a command for activation, it is a custom DataRef.

Link to comment
Share on other sites

I assigned as a Dataref without succes.

I try:

Dataref("prop_sync","LES/saab/prop/prop_sync_toggle","writable")

And I get the error from FWL:

Resources/plugins/FlyWithLua/Scripts/Caja_Botones.lua:94: attempt to call global 'Dataref' (a nil value)

and then: Lua stopped

 

Can you help me?

Thanks again

 

Link to comment
Share on other sites

20 hours ago, Mdiaz380 said:

I assigned as a Dataref without succes.

I try:

Dataref("prop_sync","LES/saab/prop/prop_sync_toggle","writable")

And I get the error from FWL:

Resources/plugins/FlyWithLua/Scripts/Caja_Botones.lua:94: attempt to call global 'Dataref' (a nil value)

and then: Lua stopped

 

Can you help me?

Thanks again

 

From page 12 of the manual

https://github.com/X-Friese/FlyWithLua/blob/master/FlyWithLua/Documentation/FlyWithLua_Manual_en.pdf

 

>DataRef("battery", "sim/cockpit/electrical/battery_on", "writable")

>print(battery)

 

The function signature you're looking for is DataRef(...)  not  Dataref(...)

 

Link to comment
Share on other sites

1 hour ago, Ben Russell said:

From page 12 of the manual

https://github.com/X-Friese/FlyWithLua/blob/master/FlyWithLua/Documentation/FlyWithLua_Manual_en.pdf

 

>DataRef("battery", "sim/cockpit/electrical/battery_on", "writable")

>print(battery)

 

The function signature you're looking for is DataRef(...)  not  Dataref(...)

 

Ooops I didn’t know capital letters make a difference.

 

THANKS A LOT

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

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