How to put an L: var in local variable in LUA

Recommended Posts


Hi, I have a strange problem , please see the lua code below.


This code work fine ( varget("L:myVar1","number") = 999 ), but the follwing: 


local index = varset("L:index","number",1)


This code not work. ( varget("L:myVar1","number") = 0 ).

Someone can explain to me what is wrong or what i'm doing bad.

thanks by advance.




Edited by bokdany

Share this post

Link to post
Help AVSIM continue to serve you!
Please donate today!

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