Nelis.75733126 – User talk

From Bohemia Interactive Community
Jump to navigation Jump to search
(→‎weaponsItemsCargo: new section)
Line 6: Line 6:


The empty string in your example is present in both arrays. How can you say the magazine array is an empty string if the string was always there? It only returns weapon cargo. If there is no magazine in the gun it is not part of the cargo. The command is not bugged.
The empty string in your example is present in both arrays. How can you say the magazine array is an empty string if the string was always there? It only returns weapon cargo. If there is no magazine in the gun it is not part of the cargo. The command is not bugged.
You did not read what I said. INSTEAD of the non-existent mag being an EMPTY STRING, IT IS NOT THERE. Which means that checking for a mag in a weapon is stupidly difficult. I will do it again for you:
WITHOUT BIPOD AND MAG: ["weaponClassName","silencer","laser/light","scope",""]
WITH MAG AND WITHOUT BIPOD: ["weaponClassName","silencer","laser/light","scope",["magClassName",30],""]
See the difference??

Revision as of 16:35, 22 August 2015

switch vs call

I moved your note to talk since cannot confirm the validity of your claim Killzone Kid (talk) 23:01, 5 July 2015 (CEST)

weaponsItemsCargo

The empty string in your example is present in both arrays. How can you say the magazine array is an empty string if the string was always there? It only returns weapon cargo. If there is no magazine in the gun it is not part of the cargo. The command is not bugged.

You did not read what I said. INSTEAD of the non-existent mag being an EMPTY STRING, IT IS NOT THERE. Which means that checking for a mag in a weapon is stupidly difficult. I will do it again for you: WITHOUT BIPOD AND MAG: ["weaponClassName","silencer","laser/light","scope",""] WITH MAG AND WITHOUT BIPOD: ["weaponClassName","silencer","laser/light","scope",["magClassName",30],""]

See the difference??