WarhammerActual 23 Posted August 4, 2021 Hello, Can anyone assist me in adding ACRE2 radios to vehicle's inventory ? I am putting this into the init of the vehicle addItemCargoGlobal [“ACRE_SEM70”,1]; But I know I am doing something wrong, I get an error message Init missing ; Also is anyone familiar with setting up the vehicle rack system? I know the ACRE2 wiki has this https://acre2.idi-systems.com/wiki/frameworks/vehicle-racks but it is a bit confusing as to where to even put the code. I assume place this into the init . Any help would be greatly appreciated and thank you in advance class CfgVehicles { class Car_F; class MRAP_01_base_F : Car_F { class AcreRacks { class Rack_1 { displayName = "Dashboard Upper"; // Name displayed in the interaction menu shortName = "D.Up"; // Short name displayed on the HUD. Maximum of 5 characters componentName = "ACRE_VRC110"; // Able to mount a PRC152 allowedPositions[] = {"driver", {"cargo", 1}}; // Who can configure the radio and open the radio GUI. Same wildcards as the intercom. It also allows transmitting/receiving disabledPositions[] = {}; // Who cannot access the radio (default: {}) defaultComponents[] = {}; // Use this to attach simple components like Antennas, they will first attempt to fill empty connectors but will overide existing connectors. Not yet fully implemented. (default: {}) mountedRadio = ""; // Predefined mounted radio (default: "", meaning none) isRadioRemovable = 1; // Radio can be removed (default: 0) intercom[] = {}; // Radio not wired to any intercom. All units in intercom can receive/send transmittions (ACE3 interaction menu) but they cannot manipulate the radio (GUI interface) (default: {}) }; class Rack_2 { displayName = "Dashboard Lower"; // Name displayed in the interaction menu shortName = "D.Low"; // Short name displayed on the HUD. Maximum of 5 characters componentName = "ACRE_VRC103"; // Rack type (able to mount a PRC117F) allowedPositions[] = {"driver", "commander", "gunner"}; // Who can configure the radio and open the radio GUI. Same wildcards as the intercom. It also allows transmitting/receiving disabledPositions[] = {}; defaultComponents[] = {}; mountedRadio = "ACRE_PRC117F"; // Predefined mounted radio isRadioRemovable = 0; // Radio cannot be removed intercom[] = {}; // Radio not wired to any intercom. All units in intercom can receive/send transmittions (ACE3 interaction menu) but they cannot manipulate the radio (GUI interface) }; }; }; }; Share this post Link to post Share on other sites
pierremgi 4739 Posted August 4, 2021 if (isServer) then {this addItemCargoGlobal [“ACRE_SEM70”,1]}; Share this post Link to post Share on other sites
WarhammerActual 23 Posted August 4, 2021 3 hours ago, pierremgi said: if (isServer) then {this addItemCargoGlobal [“ACRE_SEM70”,1]}; I get invalid number in expression .. any thoughts? Share this post Link to post Share on other sites
pierremgi 4739 Posted August 4, 2021 Don't copy paste,... rewrite it, in init field of the vehicle. Share this post Link to post Share on other sites
WarhammerActual 23 Posted August 4, 2021 5 minutes ago, pierremgi said: Don't copy paste,... rewrite it, in init field of the vehicle. That worked perfectly. Thank you so much . Share this post Link to post Share on other sites
Harzach 2507 Posted August 5, 2021 1 hour ago, WarhammerActual said: That worked perfectly. Thank you so much . This is a forum bug. You can actually use the forum to find and fix the errors. Just copy/paste your code back into a new reply (in a code block) and any bad characters will show up as red dots. Just delete them and recopy, then cancel your reply. An example from an older topic: 3 Share this post Link to post Share on other sites