What my goal was is for UAVs to remain locked no matter what. Currently what happens is that the UAVs cannot be unlocked (which is good).Code:_vehicle = _this select 0; _act = _this select 2; _lock = true; _label = Localize "STR_WF_Unlock"; if (_vehicle isKindOf "UAV") then { _lock = true;_label = Localize "STR_WF_Unlock"; } else {_lock = false;_label = Localize "STR_WF_Lock"; }; [_vehicle,_lock] Call CLTFNCSetVehicleLock; _vehicle removeAction _act; _act = _vehicle AddAction [_label,"Client\Action\Action_ToggleLock.sqf"];
The problem comes when somebody unlocks any other type of vehicle. It unlocks it, but when they press lock on it again, it doesn't re-lock.
If anybody could help, it would be much appreciated.
HOME
Reply With Quote
