fn_onSavePressed.sqf 490 B

1234567891011121314151617181920212223242526
  1. #include "defines.h"
  2. /*
  3. Author: Bryan "Tonic" Boardwine
  4. Description:
  5. Updates the view distance dependant on whether the player
  6. is on foot, a car or an aircraft.
  7. */
  8. private ["_saveIndex","_saveName"];
  9. _saveIndex = lbCurSel SAVES_LIST;
  10. _saveName = ctrlText SLOT_NAME;
  11. SVAR_PNS [format["tawvd_slot_%1",_saveIndex],
  12. [
  13. _saveName,
  14. tawvd_foot,
  15. tawvd_car,
  16. tawvd_air,
  17. tawvd_drone,
  18. tawvd_object,
  19. tawvd_syncObject
  20. ]
  21. ];
  22. saveProfileNamespace;
  23. [] call TAWVD_fnc_openSaveManager;