marker 1 Posted September 24, 2013 Hey guys Using the line below to pull out the description / shirt from the config file. I can get the short description pulled, but the long description doesn't appear at all.. configFile >> "CfgWeapons" >> _weaponsplayer >> "descriptionshort" configFile >> "CfgWeapons" >> _weaponsplayer >> "description" Now if i pull it from the MX 6.5 I assumed I should get the information from the config file that is posted within six browsers, is this correct? http://browser.six-projects.net/cfg_weapons/1873377 Right now nothing is showing for description, short just states that it is an assault rifle. Cheers Share this post Link to post Share on other sites
das attorney 857 Posted September 24, 2013 Try this: _t1 = getText (configFile >> "CfgWeapons" >> primaryWeapon player >> "description"); _t2 = getText (configFile >> "CfgWeapons" >> primaryWeapon player >> "descriptionshort"); player sideChat format ["%1", _t1]; player groupChat format ["%1", _t1]; Assuming you're holding an MX Share this post Link to post Share on other sites
marker 1 Posted September 25, 2013 Sorry Das I din't explain myself properly in the first post.. I can get everything else showing up apart from the "description" using _weaponsplayer = weapons player; _weaponsplayer = _weaponsplayer select 0; To give me the weapon the player has in their hand.. Full code below.. _weaponsplayer = ""; _picture = ""; _name = ""; _mags = ""; _weaponsplayer = weapons player; _weaponsplayer = _weaponsplayer select 0; _weaponsplayer1 = getText (configFile >> "CfgWeapons" >> _weaponsplayer >> "DisplayName"); _picture = getText (configFile >> "CfgWeapons" >> _weaponsplayer >> "picture"); _info = getText (configFile >> "CfgWeapons" >> _weaponsplayer >> "descriptionshort"); _mags = getArray (configFile >> "CfgWeapons" >> _weaponsplayer >> "magazines"); _mags = _mags select 0; _magname = getText (configFile >> "cfgMagazines" >> _mags >> "Displayname"); _infomag = getText (configFile >> "cfgMagazines" >> _mags >> "descriptionshort"); _magspic = getText (configFile >> "cfgMagazines" >> _mags >> "picture"); _name = format ["<t size='1.75' color='#6B824A'>Main Weapon info</t><br/><t size='1' color='#f0e68c'>%1</t><br/><img size='3' image='%2'/> <img size='2' image='%5'/><br/><t size='1' color='#f0e68c'>%3</t><br/><t size='1.75' color='#6B824A'>Magazine Info</t><br/><t size='1' color='#f0e68c'>%4</t><br/>", _weaponsplayer1, _picture, _info, _infomag, _magspic, _magname]; hintsilent parsetext _name; Share this post Link to post Share on other sites