I'm looking for script that will lock all vehicles in a 2m range of a player
this is what I did try no luck of it working
this is what I did try no luck of it working
Code:
if(player distance _vehicle < 2) then {
DZE_ActionInProgress = true;
s_player_lockUnlock_crtl = 1;
PVDZE_veh_Lock = [_vehicle,true];
if (local _vehicle) then {
PVDZE_veh_Lock spawn local_lockUnlock
} else {
publicVariable "PVDZE_veh_Lock";
};
s_player_lockUnlock_crtl = -1;
DZE_ActionInProgress = false;
};