tobmic 10 Posted September 17, 2009 Hello. Right now i edited our Domination and added artillery on our base aswell as a BM-21 Grad. Now i want to lock the Artillery/Mortar and BM-21 for non Artillery Operators. How do i do that ? Share this post Link to post Share on other sites
Bon 12 Posted September 17, 2009 Hi, to lock a vehicle its simply <vehicle> lock true But I don't know if this only effects locally, so maybe it will be locked then for all players. I usually use a vehicle-driver-check script, the one I currently use consists of the code: While{getDammage _vehicle < 1} do { WaitUntil{not(isNull driver _vehicle)}; if((_vehicle isKindOf "Air" && typeOf (driver _vehicle) != "USMC_Soldier_Pilot") || (typeOf _vehicle in ["MtvrReammo","MtvrRepair","MtvrRefuel"] && typeOf (driver _vehicle) != "USMC_SoldierS_Engineer")) then { _vehicle engineOn false; (driver _vehicle) action ["Eject",_vehicle]; }; WaitUntil{isNull driver _vehicle}; }; if(true) exitWith{}; As you can see here only pilots can enter air vehicles as pilots and only engineers can drive the cars of types "MtvrReammo", "MtvrRepair", "MtvrRefuel". Should not be a big deal to fit this piece of code to your purposes. Then you have to write [this] execVM "scriptabove.sqf" into the vehicles init line or (probably you want to create this artillery dynamically or enable respawn) use the "setVehicleInit" command. Share this post Link to post Share on other sites
tobmic 10 Posted September 17, 2009 thx alot ! can you tell me how to use the "setvehicleinit" command ? Share this post Link to post Share on other sites