Jump to content
Sign in to follow this  
1para{god-father}

Lock Vehicle by Side ?

Recommended Posts

place this in any vehicle init and it will kick out all non resistance units and shut off engine if turned on.

this addEventHandler ["GetIn", {
_unit = _this select 2;
if (side _unit != resistance) then {
	_veh = _this select 0;
	_fuel = fuel _veh;
	_veh setFuel 0;
	_unit action ["eject", _veh];
	[_unit,_veh,_fuel] spawn {
		waitUntil {sleep 1; vehicle (_this select 0) == (_this select 0)};
		(_this select 1) setFuel (_this select 2);
	};
};
}];

Share this post


Link to post
Share on other sites

What about if it was russians only, what would have to replace resistance?

Share this post


Link to post
Share on other sites

you can use action as well to turn engine off instead of messing with fuel

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×