fn_mainInit.sqf 851 B

12345678910111213141516171819202122232425
  1. /*
  2. @version: 1.4
  3. @file_name: fn_mainInit.sqf
  4. @file_author: TAW_Tonic
  5. @file_edit: 7/11/2013
  6. @file_description: Only called once during the initialization of VAS and uses compileFinal on all VAS functions.
  7. */
  8. [] spawn
  9. {
  10. private["_handle"];
  11. VAS_init_complete = false;
  12. diag_log "::VAS:: Loading KRON_Strings.sqf";
  13. _handle = [] execVM "VAS\KRON_Strings.sqf";
  14. waitUntil {scriptDone _handle};
  15. diag_log "::VAS:: Loading config.sqf";
  16. _handle = [] execVM "VAS\config.sqf";
  17. waitUntil {scriptDone _handle;};
  18. diag_log "::VAS:: Building VAS Configs";
  19. if(isNil "VAS_fnc_buildConfig") exitWith {diag_log "::VAS:: function VAS_fnc_buildConfig is nil"};
  20. ["CfgWeapons"] call VAS_fnc_buildConfig;
  21. ["CfgMagazines"] call VAS_fnc_buildConfig;
  22. ["CfgVehicles"] call VAS_fnc_buildConfig;
  23. ["CfgGlasses"] call VAS_fnc_buildConfig;
  24. VAS_init_complete = true;
  25. };