Jump to content
Sign in to follow this  
Hippo

Help - what is _t ?

Recommended Posts

Hi,

 

Sorry about this. I've come back to some files I'd written months ago and I have this code

 

 

function SF260_AP_HDG_PB ()

if _t('AP_HDG_PB') then

ipc.control(66106)

else

ipc.control(66107)

ipc.control(65809)

end

end

 

Now I can't for the life of me remember what the "if _t('AP_HDG_PB') then" does. I think I used after seeing it mentioned on a post on this forum - but can I find it now?

 

If anyone could let me know what it's for or point me to where it's explained, I'd be most grateful.

Share this post


Link to post
Share on other sites

Sorry,

I have overseen this post.

 

the _t is a LINDA specific function and this is a toggler.

 

If you have a function example_ON () and example_OFF (), you use this toggle function in this way:

 

function example_toggle ()
   if _t('anyname') then
    example_ON ()
   else
    example_OFF ()
   end
end

 

 

You can use there also LUA variables as trigger.

Example as above, but have a look at the _tl now

 

function example_toggle ()
   if _tl("L:Your_Lua_Variable, 0) then
    example_ON ()
   else
    example_OFF ()
   end
end


Guenter Steiner
--------------------------------------------------------------------------------------

Betatester for: A2A, LORBY, FSR-Pillow Tester
--------------------------------------------------------------------------------------

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...