marki980908 23 Posted July 31, 2022 (edited) Essentially, when I have a specific NVG equipped I want to get an option in ACE Self Interact to be able to replace my NVG with a different NVG class Ace_Mf_Divisiontech_Category_Main_Red_NVG { displayName = "Division Tech"; condition = "count (['MF_Division_Beacon_Red_1_NVG', 'MF_Division_Beacon_Red_2_NVG','MF_Division_Beacon_Red_3_NVG','MF_Division_Beacon_Red_4_NVG','MF_Division_Beacon_Red_5_NVG','MF_Division_Beacon_Red_6_NVG','MF_Division_Beacon_Red_7_NVG','MF_Division_Beacon_Red_8_NVG','MF_Division_Beacon_Red_9_NVG','MF_Division_Beacon_Red_10_NVG'] arrayIntersect assignedItems _player) > 0;" icon = "DivisionBeacon\data\beacon_categories_red.paa"; class Ace_Mf_Divisiontech_Category_Red_1_NVG { displayName = "Adjust Strap (1)"; condition = assignedItems player in ["MF_Division_Beacon_Red_1_NVG", "MF_Division_Beacon_Red_2_NVG","MF_Division_Beacon_Red_3_NVG","MF_Division_Beacon_Red_4_NVG","MF_Division_Beacon_Red_5_NVG","MF_Division_Beacon_Red_6_NVG","MF_Division_Beacon_Red_7_NVG","MF_Division_Beacon_Red_8_NVG","MF_Division_Beacon_Red_9_NVG","MF_Division_Beacon_Red_10_NVG"]; exceptions[] = {}; statement = "params ['_target','_player','_actionParams']; _player addItem 'MF_Division_Beacon_Orange_1_NVG'; _player assignItem 'MF_Division_Beacon_Orange_1_NVG';" icon = "DivisionBeacon\data\beacon_categories_red.paa"; }; class Ace_Mf_Divisiontech_Category_Red_2_NVG { displayName = "Adjust Strap (2)"; condition = assignedItems player in ["MF_Division_Beacon_Red_1_NVG", "MF_Division_Beacon_Red_2_NVG","MF_Division_Beacon_Red_3_NVG","MF_Division_Beacon_Red_4_NVG","MF_Division_Beacon_Red_5_NVG","MF_Division_Beacon_Red_6_NVG","MF_Division_Beacon_Red_7_NVG","MF_Division_Beacon_Red_8_NVG","MF_Division_Beacon_Red_9_NVG","MF_Division_Beacon_Red_10_NVG"]; exceptions[] = {}; statement = " params ['_target','_player','_actionParams']; _player addItem 'MF_Division_Beacon_Orange_2_NVG'; _player assignItem 'MF_Division_Beacon_Orange_2_NVG';" icon = "DivisionBeacon\data\beacon_categories_red.paa"; }; ... the reason why conditions are different for Ace_Mf_Divisiontech_Category_Main_Red_NVG and Ace_Mf_Division_Category_Red_1_NVG is because I was testing to see if any of those 2 conditions work and none did. Right now I can equip MF_DIvision_Beacon_Red_1_NVG, but nothing shows up in ACE Interact Also I get this error while ingame: Edited July 31, 2022 by marki980908 mistake Share this post Link to post Share on other sites