Difference between revisions of "DCS func dostring in"

From DCS World Wiki - Hoggitworld.com
(Created page with "{{Template:DCS_server_funcs |fName= dostring_in |vNum= 2.5.0 |par1= net |par2= |par3= |par4= |desc= Executes a lua string in a given lua environ...")
 
 
(One intermediate revision by the same user not shown)
Line 7: Line 7:
 
|par1= [[DCS_singleton_net|net]]
 
|par1= [[DCS_singleton_net|net]]
  
|par2=  
+
|par2= [[DCS_server_gameGUI|net (gameGUI)]]
  
 
|par3=  
 
|par3=  
Line 41: Line 41:
  
  
|related=  
+
|related= [[DCS_server_gameGUI|'''GameGUI API:''']] {{listOfNetFuncs}}
[[DCS_singleton_net|'''Network API:''']] {{listOfNetFuncs}}
 
  
 +
 +
[[DCS_singleton_net|'''Mission Net''']] {{listOfMissionNetFuncs}}
 
|examples=  
 
|examples=  
  
Line 49: Line 50:
 
}}
 
}}
 
[[Category:DCS Control Functions|dostring_in]]
 
[[Category:DCS Control Functions|dostring_in]]
 +
[[Category:Game Patch 2.5.0|dostring_in]]

Latest revision as of 23:00, 17 March 2022


Environment: Server
Function: dostring_in Added with: 2.5.0
Member Of: net, net (gameGUI)
Syntax: string net.dostring_in(string state, string dostring )
Description: Executes a lua string in a given lua environment in the game.
 'config': the state in which $INSTALL_DIR/Config/main.cfg is executed, as well as $WRITE_DIR/Config/autoexec.cfg
           used for configuration settings
 'mission': holds current mission
 'export': runs $WRITE_DIR/Scripts/Export.lua and the relevant export API


Return Value: string
Return Example:
Examples:
Related Functions: GameGUI API: send_chat, send_chat_to, recv_chat, load_mission, load_next_mission, get_player_list, get_my_player_id, get_server_id, get_player_info, kick, get_stat, get_name, get_slot, set_slot, force_player_slot, lua2json, json2lua, dostring_in, log, trace


Mission Net send_chat, send_chat_to, recv_chat, get_player_list, get_my_player_id, get_server_id, get_player_info, kick, get_stat, get_name, get_slot, set_slot, force_player_slot, lua2json, json2lua, dostring_in, log, trace

Notes: