Jump to content

Recommended Posts

Posted

I have this problem I would need to use a global variable, if I use DoScript works!

 

Start mix

 -- Variabiles
do
pippo = 1
end

 

Continus

 
do
trigger.action.outText(pippo, 5)
pippo = pippo + 1
end

 

but if I put them in two separate lua file and use the Script File Do me an error, how can I use?

Can I use my boolean variables?

====VIAF====

Spinter 155° "Pantere Nere"

 

TsSimComms

 

My Site aiupgrade.net

 

 

 

Posted

I don't know about the scoping rules in DCS lua between scripts, but for sharing an int value you can use any flag. If you follow the flag approach, I recommend writing a set and get function for it with a telling name (e.g. getPippo, setPippo).

  • Recently Browsing   0 members

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