Jump to content

Recommended Posts

I have been customising a version of Altis Life (5.0.0) and i seem to have executed this command - life_carryWeight = 0; over global instead of local through the debug console.

This has given all the in game testers a backpack which goes well over the default limit. Is there a way to reset the carry weight back to its default values across the entire server?

 

Thanks. 

Share this post


Link to post
Share on other sites

Is life_carryWeight the same for all players / backpacks?

Try executing life_carryWeight  = VALUE; globally again.

 

If life_carryWeight is different, or you don't know the default value then you will likely have to restart the mission/server.

 

  • Thanks 1

Share this post


Link to post
Share on other sites

ok thanks - life_carryWeight  = 24; is default, i did this and it put the backpacks in negative,,, heres the line from the base file (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);
        };
    };

 

would it be :

 life_carryWeight  = total_maxWeight; ??

 

i also have reset the server and it seems to be persistent.

 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×