Create a mission, put a MQ4A Greyhawk and put the following in its initialization field:
hint format["%1/%2\n%3/%4\n%5/%6", magazinesAmmo uav select 0 select 0, magazinesAmmo uav select 0 select 1, magazinesAmmo uav select 1 select 0, magazinesAmmo uav select 1 select 1, magazinesAmmo uav select 2 select 0, magazinesAmmo uav select 2 select 1]
You will get the following:
Laserbatteries/1
any/any
any/any
You can try with all the other functions.
NOTE : it should have 3 weapons, the missiles SCALPEL and the flares