test get|setUnitLoadout on player login

since setUnitLoadout arguments can be global and have global effect it
may work better than some of the inventory commands that only work with
local args. (like: https://community.bistudio.com/wiki/addBackpack,
https://community.bistudio.com/wiki/addWeapon, etc.)

If this helps then, a more Ideal fix would be to just use getUnitLoadout
on player save and setUnitLoadout on player logins.
This commit is contained in:
vbawol 2017-06-23 16:15:23 -05:00
parent b0312d2e13
commit 05322dfb1c
5 changed files with 5 additions and 2 deletions

View File

@ -1 +1 @@
build=797;
build=798;

View File

@ -312,6 +312,9 @@ if (!isNull _player) then {
// [] remoteExec ["bis_fnc_reviveInit",_player];
// This is a test to see setUnitLoadout can force propagation of unit loadout.
_newPlyr setUnitLoadout (getUnitLoadout _newPlyr); // if this works, possibly replace all inventory code with with get|setUnitLoadout
};
} else {
diag_log format["LOGIN FAILED UNIT NULL: %1 [%2|%3]", _player, _group, count allgroups];

Binary file not shown.

View File

@ -1 +1 @@
797
798