whatsupdoc_1_27 20 Posted July 3, 2016 Okay I know how to lock a player in a tank but how would I allow them to change positions/seats without them being allowed to exit the vehicle? Example: Tank for one, you are the driver but can switch over to the Gunner or Commander. But if I lock you in that vehicle, meaning I don't want you to "Get Out" or "Exit", how can I still allow a player to switch seats? Right now I am brain storming the possibility of creating an all out tank map using all of the CUP and other's addon tanks where players only use tanks and nothing else. Kinda like World of Tanks..I know there are some others out there like this but they also have artillery and some other stuff on the map that I feel takes the tank only TDM out of the game play. Using triggers is easy to lock a person in a tank but it locks them into that position and well that doesn't work if only one person is in the tank. Thanks in advance... Share this post Link to post Share on other sites
WurschtBanane 11 Posted September 8, 2016 You could use a vehicle lock script. There should be tons of them out there. Share this post Link to post Share on other sites
Tajin 349 Posted September 9, 2016 I guess in that case its best to not lock the tank and instead just make sure the player can't get out. Try this in your init.sqf: if (hasInterface) then { player addEventHandler ["GetOutMan",{ params ["_unit","_position","_vehicle","_turret"]; switch (_position) do { case: "driver": { _unit moveInDriver _vehicle; }; case: "gunner": { _unit moveInGunner _vehicle; }; case: "cargo": { _unit moveInCargo _vehicle; }; default { _unit moveInAny _vehicle; } }; }]; }; Alternately, you could experiment with using an UiEventhandler to block the getout-action: https://community.bistudio.com/wiki/Arma_3:_Event_Handlers/inGameUISetEventHandler Share this post Link to post Share on other sites