I want to do the following things:
1- prevent some players from disassembling static weapons they are not allowed to disassemble (eg: the static weapon is assigned to other squads/players)
2- track weapon backpack status that is related to the status weapon by using setVariable command on it (eg: know if backpack still exists in a vehicle, an ammocrate on a dead/alive body)
I thought about using the weaponDisassembled event handler because it seems to be the only solution for what I want to do. Unfortunately it seems this event handler executes after the weapon is disassembled which means I cannot check if the player actually is allowed to disassemble this weapon (point 1). This also means I cannot have a 4th parameter provided by this EH with a reference to the weapon that is being disassembled. This would help me since I'm setting a variable on the static weapon to know what squad can use it. I would like to copy the variable on the weapon backpack (point 2).
I would like to know if there is any chance of having this 4th parameter added to the weaponDisassembled event handler and also preventing the weapon from being disassembled if false is returned by the code.