=BFP=Cheetah 0 Posted September 29, 2007 ************************************** GENERAL INFORMATION: Ever got to the point where you made an undercover mission and got frustrated because of the lack of an option to hide pistols? Then use this script to allow the player to holster and unholster his pistol! See below on how to get some output to check if the player has his weapon holstered or not. Activate the main script, gunControl.sqf with: script = [] execVM "gunControl.sqf"; This code should be put in the init.sqs or any other initialization. If you want to check if a pistol is hidden, access the boolean found in the saveWeapon array. To make it visible, use the following code. hint format ["%1",saveWeapon select 1]; If you need the value in a script, use: saveWeapon select 1, and it will return true (holstered) or false (unholstered). Easy to use in undercover missions, to trigger or not to trigger the alarm. An example is added to show how you can make a unit hostile and not hostile depending on the weapon draw or hidden. ************************************** DOWNLOAD: You can always find the newest version of the holster script on OFPEC - The Editing Center: download ************************************** CREDITS: -Thanks Mandoble, for your great advice to bundle it all into a single file! -Thanks Spooner, for showing how to use the config file to check if a player has a pistol! ************************************** CHANGELOG Version 1.03 - Improved demo mission, now shows how to switch between hostile / friendly status Version 1.02 - Improved pistol information gaining (config >> pistolcore) - Fixed bug where taking a pistol while holstered resulted in problems Version 1.01 - Changed three file method to one file, thanks to helpful comments from Mandoble - Fixed bug concerning additional weapons - Improved structure/syntax Version 1.00 - Release ************************************** CONTACT INFORMATION: To contact me use either the forum on www.ofpec.com, the official forums under the name =BFP=Cheetah, or by email: cheetah99 [at] hotmail [dot] com Share this post Link to post Share on other sites
SeppSchrot 0 Posted September 29, 2007 Thanks such a lot! I missed this since the first day I played ArmA. Cool. Share this post Link to post Share on other sites
Guest Posted October 3, 2007 Try this one from Armaholic.com: http://www.armaholic.com/page.php?id=2135 And I think the link is temporarily down cause their ISP had to do some server work. Share this post Link to post Share on other sites
=BFP=Cheetah 0 Posted October 4, 2007 Indeed nothing wrong with the OFPEC link. As foxhound wrote, the site was down for a couple of hours on the 3rd, planned downtime that is EDIT: version 1.03 released. See first post. Note, 1.03 will be up on the download server within a few hours. Share this post Link to post Share on other sites
daza 36 Posted January 2, 2010 Is there going to be an update of this script for Arma2? i tried to use the A1 version mentioned here and it doesn't work in A2. Share this post Link to post Share on other sites