kinanischka 10 Posted March 13, 2013 Hello! I've created a mission in which one team escorts a VIP to a specific spot on the map while the opposing team tries to stop them. The thing is, I'd like the VIP to have a pistol he can use, but I don't want him to pick up any other weapon... At first I set up this script: blufor_vip addWeapon "hgun_Rook40_F"; blufor_vip addMagazine "16Rnd_9x21_Mag"; while {alive blufor_vip} do { blufor_vip selectWeapon "hgun_Rook40_F"; sleep 0.5; }; It kind of worked as intended, meaning the VIP could pick up any weapon but not use it, as it auto switched to his pistol instantly. BUT, if he drops the pistol, the restriction doesn't apply anymore. So I had to resign and basically use this script: while {alive blufor_vip} do { removeAllWeapons blufor_vip; sleep 0.5; }; However, I'd really like the VIP to not be completely naked, so a pistol would be cool. Any ideas? :) Share this post Link to post Share on other sites
cobra4v320 27 Posted March 13, 2013 Not tested but doing a simple search you will find many scripts already created for what you want. _unitType = typeOf player; _allowableWeapons = ["weaponclass1", "weaponclass2", "weaponclass3", "weaponclass4"]; //* Weapon class names to allow a certain class *// _weaponPlayer = primaryWeapon player; while {true} do { if (_unitType == "unit_class_name" && _weaponPlayer !in _allowableWeapons) then { player removeWeapon _weaponPlayer; hint "Your class restricts you from having this weapon, please select a new weapon"; } }; Share this post Link to post Share on other sites
kinanischka 10 Posted March 13, 2013 I had searched a lot prior to posting but probably not in the right places... Thanks a lot for providing with an example! Share this post Link to post Share on other sites
cobra4v320 27 Posted March 13, 2013 Search for ARMA 2 weapon restrictions, there are many other methods to do this script. Don't do ARMA 3 searches unless its ARMA 3 specific or you wont find what you are looking for. Share this post Link to post Share on other sites