mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
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:
parent
b0312d2e13
commit
05322dfb1c
Binary file not shown.
@ -1 +1 @@
|
||||
build=797;
|
||||
build=798;
|
||||
|
@ -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.
Loading…
Reference in New Issue
Block a user