Springfield86 2 Posted June 1, 2021 hello internet, i wonder how i find classnames of mod vehicles - in this particular case im trying to make an AI plane drop a Bomb at a waypoint this forceWeaponFire ["Bomb_03_Plane_CAS_02_F", "LoalAltitude"]; i used this in vanilla planes and a c.u.p. planes and it worked fine, as long as i used "FAB-250M-54" on the planes pylons. now how do i find the specific classname for the RHS Su25 FAB 500 bombs, cause it looks like it wont work. are they firing different missiles as in vanilla i suppose? //i tried the vanilla one this forceWeaponFire ["bomb_03_plane_cas_02_f", "LoalAltitude"]; //i tried these i found on the interwebs this forceWeaponFire ["rhs_weap_fab250_m62", "LoalAltitude"]; this forceWeaponFire ["rhs_weap_ofab250", "LoalAltitude"]; this forceWeaponFire ["rhs_weap_fab250", "LoalAltitude"]; this forceWeaponFire ["rhs_ammo_fab250_m62", "LoalAltitude"]; this forceWeaponFire ["rhs_ammo_ofab250", "LoalAltitude"]; this forceWeaponFire ["rhs_ammo_fab250", "LoalAltitude"]; Spoiler but didnt seem to work, in general how do i find out what classnames i need or how do i know if a mod fires different ammo then in vanilla used? Share this post Link to post Share on other sites
Von Quest 1163 Posted June 1, 2021 I believe you can use the Config Viewer (guessing cfgWeapons) to dig around. Share this post Link to post Share on other sites
Springfield86 2 Posted June 1, 2021 yeah i did that @Von Quest but im not really finding anything or really knowing what to look for =/ if im looking for "fab" or "250" i cant find it Share this post Link to post Share on other sites
Joe98 92 Posted June 1, 2021 2 hours ago, Springfield86 said: hello internet, i wonder how i find classnames of mod vehicles - To find the class name of weapons and magazines = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = Place this in the init field of any aircraft, vehicle or soldier: hint format["%1 %2", weapons this, magazines this]; To find the class name of ammunition = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = Fire the weapon, aircraft bomb or whatever the weapon is: this addeventhandler ["fired",{hint format ["Weapon name : %1 Ammo name : %2",_this select 1,_this select 4]}] . 1 1 Share this post Link to post Share on other sites
Springfield86 2 Posted June 1, 2021 thanks @Joe98 that actually helped a lot! buuuuuuuuut..... i looked in the weaponscfg for the "output your script gave me" and found that the mode for the weapon looks like this modes[] = {"this"}; while for the "bomb_03_plane_cas_02_f" it was "LoalAltitude" so this should do the trick right? wrong... still does not work, did i got something wrong? this forceWeaponFire ["rhs_weap_fab250", "this"]; //or this forceWeaponFire ["rhs_weap_fab100", "single"]; update: changed weapon and did the same again, looked in the cnfg and mode was loaltitude this time, that worked. this forceWeaponFire ["rhs_weap_kab500", "LoalAltitude"]; so it was a problem of altitude or did i misunderstand "modes[] = {"this"};"? Share this post Link to post Share on other sites
pierremgi 4923 Posted June 1, 2021 Just follow BIKI: If modes[] param in config for the weapon says {"this"}, then the same classname as for the weapon param (currentWeapon player) should be used as firemode param. (example: _unit forceWeaponFire ["HandGrenadeMuzzle","HandGrenadeMuzzle"];) Modes are neither ammos nor muzzles! But sometimes you need to repeat the weapon class as mode class. Anyway, I always play as pilot or gunner and copy to clipboard the actual parameter (in console) : player addEventHandler ["firedMan", {params ["", "_weapon", "", "_mode"]; hint str [_weapon,_mode]; copyToClipboard str [_weapon,_mode]}]; // ["rhs_weap_fab500","rhs_weap_fab500"] or ["rhs_weap_kab500","LoalAltitude"] 2 Share this post Link to post Share on other sites
Springfield86 2 Posted June 1, 2021 2 hours ago, pierremgi said: Just follow BIKI: player addEventHandler ["firedMan", {params ["", "_weapon", "", "_mode"]; hint str [_weapon,_mode]; copyToClipboard str [_weapon,_mode]}]; // ["rhs_weap_fab500","rhs_weap_fab500"] or ["rhs_weap_kab500","LoalAltitude"] BEAUTIFUL! i swear i feel like an idiot, i had the "biki" site open all the time and didnt see "this" - thank you pierre, merci! Share this post Link to post Share on other sites