Search the Community
Showing results for tags 'wrong'.
Found 1 result
-
I am running Altis Life v5.0.0 (https://github.com/AsYetUntitled/Framework) I have a problem with backpacks not showing the correct max capacity in game (Its well above it) - Here is the bp statement in my fn_survival.sqf : /* Adjustment of carrying capacity based on backpack changes */ if (backpack player isEqualTo "") then { life_maxWeight = LIFE_SETTINGS(getNumber,"total_maxWeight"); _bp = backpack player; } else { if (!(backpack player isEqualTo "") && {!(backpack player isEqualTo _bp)}) then { _bp = backpack player; life_maxWeight = LIFE_SETTINGS(getNumber,"total_maxWeight") + round(FETCH_CONFIG2(getNumber,"CfgVehicles",_bp,"maximumload") / 4); }; }; and further down - { private["_bp","_load","_cfg"]; while{true} do { waitUntil {backpack player != ""}; _bp = backpack player; _cfg = getNumber(configFile >> "CfgVehicles" >> (backpack player) >> "maximumload"); _load = round(_cfg / 8); life_maxWeight = life_maxWeight + _load; if(playerSide == west) then {(unitBackpack player) setObjectTextureGlobal [1,""];}; // <---- Sac invisible chez les flics if(playerSide == independent) then {(unitBackpack player) setObjectTextureGlobal [1,""];}; // <----- Sac Invisible chez les Medics waitUntil {backpack player != _bp}; if(backpack player == "") then { life_maxWeight = life_maxWeight; }; }; }; Thank you