-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Player Events: "Loadout" event returns irrelevant data #1300
Comments
0: unit The old loadout may be empty array for retroactive execution. |
Doc is here: #1289 (comment)
|
So what is expected solution - do i need to update scripts from my side to match new return values order or return values order will be restored (i mean that event data was [_unit, _newLoadout] for at least few months, so it's kinda weird that it was changed instead of just adding oldLoadout as _this # 2) |
We should be eventually changing cba to return new as 2nd arg ( Until that version is released the safe way will be to manually get it
|
Got it. Thanks! |
Mods (complete and add to the following information):
1.96.146114 stable
3.14.0.200207
Description:
"Loadout" EH returns weird data. Right after adding EH - it returns empty array as
_this # 1
(_newLoadout). Then each event return previous loadout for some reason.Example:
Initial loadout:
[["arifle_MX_SW_pointer_F","","acc_pointer_IR","",["100Rnd_65x39_caseless_mag",100],[],"bipod_01_F_snd"],[],["hgun_P07_F","","","",["16Rnd_9x21_Mag",16],[],""],["U_B_CombatUniform_mcam_tshirt",[["FirstAidKit",1],["HandGrenade",1,1],["SmokeShell",1,1],["SmokeShellGreen",1,1],["Chemlight_green",1,1]]],["V_PlateCarrier2_rgr",[["100Rnd_65x39_caseless_mag",5,100],["16Rnd_9x21_Mag",2,16],["Chemlight_green",1,1]]],[],"H_HelmetB_grass","",[],["ItemMap","","ItemRadio","ItemCompass","ItemWatch","NVGoggles"]]
Add EH :
[]
Expected behavior:
(_this # 1) should return changed loadout.
Where did the issue occur?
The text was updated successfully, but these errors were encountered: