mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Merge branch 'master' into medical-adjustments
This commit is contained in:
commit
3acfc4d2a3
@ -24,7 +24,7 @@ _totalWeight = 0;
|
|||||||
// Cycle through all item types with their assigned config paths.
|
// Cycle through all item types with their assigned config paths.
|
||||||
{
|
{
|
||||||
_x params["_items","_getConfigCode"];
|
_x params["_items","_getConfigCode"];
|
||||||
_items params ["_item", "_count"]
|
_items params ["_item", "_count"];
|
||||||
// Cycle through all items and read their mass out of the config.
|
// Cycle through all items and read their mass out of the config.
|
||||||
{
|
{
|
||||||
// Multiply mass with amount of items and add the mass to the total weight.
|
// Multiply mass with amount of items and add the mass to the total weight.
|
||||||
|
@ -26,7 +26,7 @@ if (getNumber (_config >> QGVAR(canDrag)) == 1) then {
|
|||||||
[_object, true, _position, _direction] call FUNC(setDraggable);
|
[_object, true, _position, _direction] call FUNC(setDraggable);
|
||||||
};
|
};
|
||||||
|
|
||||||
if (getNumber (_config >> QGVAR(canCarry)) == 1) then
|
if (getNumber (_config >> QGVAR(canCarry)) == 1) then {
|
||||||
_position = getArray (_config >> QGVAR(carryPosition));
|
_position = getArray (_config >> QGVAR(carryPosition));
|
||||||
_direction = getNumber (_config >> QGVAR(carryDirection));
|
_direction = getNumber (_config >> QGVAR(carryDirection));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user