terox 316 Posted January 23, 2005 is it possible to add an additional lines to a config entry so that i can query the attributes value in an ingame script. eg add the same line to all weapons entries etc eg say i want to check what calibre a magazine was and whether is belonged to Nato or warsaw pact this can easily be done with internal arrays withing the mod's scripts, however, if in the future we want to add a new weapon, we would have to update these arrays in the mod's internal scripts so i would prefer for future proofing, to attach certain attributes to either the weapon or its magazine, so that a script can check ?(tag_calibre == "556") ?(tag_side == "NATO") <span style='color:blue'>eg</span> Quote[/b] ] class Riffle:MGun { cursor="w_weapon_T"; cursorAim="w_weapon_S"; valueWeapon=4; valueMagazine=4; ammo="BulletSingle"; displayName="$STR_DN_RIFLE"; displayNameMagazine="$STR_MN_MGUN"; shortNameMagazine="$STR_SN_MGUN"; weaponType=1; magazineType=256; <span style='color:red'>tag_calibre = "556" tag_side = "nato"</span> count=30; reloadTime=0.15; magazineReloadTime=5; sound[]={"42m16",1.0,1}; reloadSound[]={"",1,1}; reloadMagazineSound[]={"weapons\m16load",0.0003162,1}; opticsFlare=0; autoReload=0; flash="gunfire"; flashSize=0.5; dispersion=0.0001; aiDispersionCoefX=2.0; aiDispersionCoefY=2.0; maxLeadSpeed=23; canLock=0; ffMagnitude=0.5; ffFrequency=11; ffCount=3; }; is this possible, or can you offer an alternative solution Thanks in advance for any help offered Share this post Link to post Share on other sites
nephilim 0 Posted January 23, 2005 afaik its not possible to change or state queries from a cfg ingame in ofp. its only possible in vbs1 :P Share this post Link to post Share on other sites
terox 316 Posted January 24, 2005 ok thx for the response Share this post Link to post Share on other sites