Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. #include "..\..\script_macros.hpp"
  2. /*
  3. File: fn_vehicleWeightCfg.sqf
  4. Author: Bryan "Tonic" Boardwine
  5.  
  6. Description:
  7. Master configuration for vehicle weight.
  8. */
  9. private ["_className","_classNameLife","_weight"];
  10. _className = [_this,0,"",[""]] call BIS_fnc_param;
  11. _classNameLife = _className;
  12. if (!isClass (missionConfigFile >> "LifeCfgVehicles" >> _classNameLife)) then {
  13. _classNameLife = "Default"; //Use Default class if it doesn't exist
  14. diag_log format ["%1: LifeCfgVehicles class doesn't exist",_className];
  15. };
  16. _weight = M_CONFIG(getNumber,"LifeCfgVehicles",_classNameLife,"vItemSpace");
  17.  
  18. if (isNil "_weight") then {_weight = -1;};
  19. _weight;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement