catt42 Posted July 4, 2018 Posted July 4, 2018 Hi, Does anyone know whether the normal DCS lua functions are inside some file in the install folder or they are hard-coded? Inviato dal mio S2 utilizzando Tapatalk
feefifofum Posted July 6, 2018 Posted July 6, 2018 They are fairly well documented here - https://wiki.hoggitworld.com/view/Simulator_Scripting_Engine_Documentation THE GEORGIAN WAR - OFFICIAL F-15C DLC
Zayets Posted July 6, 2018 Posted July 6, 2018 I believe the OP wanted to know if he has any access to modify the functions exposed by DCS and not only calling them. [sIGPIC]OK[/sIGPIC]
catt42 Posted July 6, 2018 Author Posted July 6, 2018 I believe the OP wanted to know if he has any access to modify the functions exposed by DCS and not only calling them.Exactly, not much to modify them, but to understand how they work Inviato dal mio S2 utilizzando Tapatalk
Zayets Posted July 6, 2018 Posted July 6, 2018 I don't think you can access the function definitions themselves. DCS is exposing its internals through these lua functions. They could have chosen any language for this. Imagine these lua functions as some knobs to operate your washing machine. You can play with them to alter the state of the machine but they are hardwired and you can't change their function unless you rewire the whole stuff. [sIGPIC]OK[/sIGPIC]
Pikey Posted July 6, 2018 Posted July 6, 2018 If you want to know how they work, again, the hoggit wiki has been the goto for years. if you dump the _G you can see everything. If you want to change things, somethings can be changed others not. ___________________________________________________________________________ SIMPLE SCENERY SAVING * SIMPLE GROUP SAVING * SIMPLE STATIC SAVING *
catt42 Posted July 6, 2018 Author Posted July 6, 2018 dump the _G This should do the trick. Thanks. Inviato dal mio S2 utilizzando Tapatalk
Recommended Posts