FriZY_SK 9 Posted November 14, 2009 Hi, How can i find out weapon and shooting mod (single, burst, full ) which currently using AI ? Thx Share this post Link to post Share on other sites
nuxil 2 Posted November 14, 2009 you can put a eventhandler fired on your Ai it returns the following. * unit: Object - Object the event handler is assigned to * weapon: String - Fired weapon * muzzle: String - Muzzle that was used * mode: String - Current mode of the fired weapon * ammo: String - Ammo used Share this post Link to post Share on other sites
canukausiuka 1 Posted November 14, 2009 Yep, that's the method. If you need to get more information about the details of the current mode, then use the configFile commands, e.g.: _roundsInBurst = getNumber (configFile >> "cfgWeapons" >> _weapon >> _mode >> "burst"); _isAutomatic = getNumber (configFile >> "cfgWeapons" >> _weapon >> _mode >> "autoFire"); etc. That code is not all-encompassing, so you'd need to include checks for weapons that don't have a mode (_mode == _weapon) and for weapons that are using a different muzzle (_muzzle != _weapon) and have the config paths set up for those as well. But the gist is the same. Share this post Link to post Share on other sites
FriZY_SK 9 Posted November 17, 2009 @ nuxil and Canukausiuka Thank you a lot ;) It helps me. Share this post Link to post Share on other sites