splatsh 10 Posted May 28, 2010 How to write in my init or other file to put in ace earplug? I got one option to put them in when I play the game and if I have one pair with me, and so for glasses. Now, how to write a bit of code to plug them in, anybody know howto? player code "ACE_Earplugs"; player code "ACE_GlassesLHD_glasses"; Share this post Link to post Share on other sites
Daniel 0 Posted May 28, 2010 This might sound obvious, but have you tried: player addweapon "ACE_Earplugs"; player addweapon "ACE_GlassesLHD_glasses"; You can write that in the init.sqs, or you can simply write: this addweapon "ACE_Earplugs" on a unit's init line. Hope I haven't misunderstood. Share this post Link to post Share on other sites
blaunarwal 10 Posted May 28, 2010 that was a hint I waited for long time. I really have problems to find these things in the wagn database of ace2 :j: Share this post Link to post Share on other sites
splatsh 10 Posted May 28, 2010 This might sound obvious, but have you tried:player addweapon "ACE_Earplugs"; player addweapon "ACE_GlassesLHD_glasses"; You can write that in the init.sqs, or you can simply write: this addweapon "ACE_Earplugs" on a unit's init line. Hope I haven't misunderstood. Sorry, not equip stuff, but how to use them... That code I am looking for. I have this in my init allready: { _x addWeapon "ACE_Earplugs" } foreach units group player; { _x addWeapon "ACE_GlassesLHD_glasses" } foreach units group player; Now, I am looking for the code in how to use them. How to put in Earplugs into my ears, and howto put on glasses on my face. Maybe someone knows that, or can ask ACE team =)) Share this post Link to post Share on other sites
Fuzzy Bandit 10 Posted May 28, 2010 Well to be able to use them you'll need to edit your ACE config file. It can be found in your Main ARMA directory > userconfig > ACE > ace_clientside_config.hpp. Edit it with Notepad or whatever you use, and find the part which states: /*////////////////////////////////////////////// //CONFIG SETTING FOR : ACE 2 MOD - Changeable glasses ingame //-------------------- //FEATURES: Lets you choose different glasses //--------- //TO ENABLE: Please ADD your Player Profile Name //---------- //EXAMPLE: //-------- //class Identity //{ // name = "John Doe"; //}; // // // // ////////--E D I T below THIS LINE--//////////*/ class Identity { name = "Taxi 1"; }; /*////////////////////////////////////////////// Where it says "Edit Below this Line", put your EXACT in-game name in the speech marks. Mine, as you can see, says Taxi 1. After doing that (and remember to save!) you'll be able to equip the items in-game by just using the Action-Menu (scroll wheel). I'm not sure there's a command to automatically equip the items from the beginning of the game though. Share this post Link to post Share on other sites
splatsh 10 Posted May 28, 2010 Well to be able to use them you'll need to edit your ACE config file.It can be found in your Main ARMA directory > userconfig > ACE > ace_clientside_config.hpp. Edit it with Notepad or whatever you use, and find the part which states: /*////////////////////////////////////////////// //CONFIG SETTING FOR : ACE 2 MOD - Changeable glasses ingame //-------------------- //FEATURES: Lets you choose different glasses //--------- //TO ENABLE: Please ADD your Player Profile Name //---------- //EXAMPLE: //-------- //class Identity //{ // name = "John Doe"; //}; // // // // ////////--E D I T below THIS LINE--//////////*/ class Identity { name = "Taxi 1"; }; /*////////////////////////////////////////////// Where it says "Edit Below this Line", put your EXACT in-game name in the speech marks. Mine, as you can see, says Taxi 1. After doing that (and remember to save!) you'll be able to equip the items in-game by just using the Action-Menu (scroll wheel). I'm not sure there's a command to automatically equip the items from the beginning of the game though. Oh, thanks, I have just done that with the name, and therefore I could see this action menu ingame =) Then I wonder if I could put the earplug in my ears, and glasses on me befor start the game, but maybe its not possible =) Thanks anyway for the info about the name stuff =)) Nice to know, thanks. Share this post Link to post Share on other sites
Fuzzy Bandit 10 Posted May 28, 2010 I'm not sure there's a command to automatically equip the items from the beginning of the game though. I don't think so. :P Not totally sure though - might be something somewhere... Share this post Link to post Share on other sites
xeno 234 Posted May 28, 2010 All items are weapons. To add them use unit addWeapon "WhateverItem"; ACE weapons classlist: http://browser.dev-heaven.net/classlists/weapons If you want to activate earplugs for example... player addWeapon "ACE_Earplugs"; [player] execFSM "x\ace\addons\sys_goggles\use_earplug.fsm"; Xeno Share this post Link to post Share on other sites
splatsh 10 Posted May 28, 2010 Cool I think I am after that code: "[player] execFSM "x\ace\addons\sys_goggles\use_earplug.fsm";" Going to test it tomorrow. =) Thanks. Do you have one code for use of the glasses to? "ACE_GlassesLHD_glasses" something like this? "[player] execFSM "x\ace\addons\sys_goggles\use_GlassesLHD_glasses.fsm";" Once more, thanks =) Share this post Link to post Share on other sites
Fuzzy Bandit 10 Posted May 29, 2010 Here's a list of the FSMs in ace_sys_goggles.pbo in the ACE Addon Folder: use_earplug.fsm use_glasses.fsm remove_earplug.fsm remove_glasses.fsm So, to add the glasses you should be able to use: [player] execFSM "x\ace\addons\sys_goggles\use_glasses.fsm; Share this post Link to post Share on other sites
Evil_Echo 11 Posted May 29, 2010 The fsm for using glasses takes 2 parameters, unit and goggle classname. [player, "ACE_GlassesLHD_glasses"] execFSM "x\ace\addons\sys_goggles\use_glasses.fsm"; Share this post Link to post Share on other sites
SaOk 112 Posted June 24, 2010 (edited) The earplugs works great with those codes, but I cant get the glasses to work with those examples. Edit: I was wrong again. one "-symbol was missing in my code. Sorry. Still I can´t get any sight effect from the glasses. I have yellow tactical glasses on, but I see normal colours. Edited June 24, 2010 by SaOk Share this post Link to post Share on other sites