-
Discussion URL: https://epochmod.com/forum/topic/43819-release-locate-vehicle-vkc-support/
-
Tested as working on a blank Epoch 1.0.6.1
-
This adds support for multiple vehicles per key (https://github.com/oiad/vkc)
-
Designed to be light weight and optimized.
-
Please, if you report issues can you please attach (on pastebin or similar) your CLIENT rpt log file as this helps find out the errors very quickly. To find this logfile:
C:\users\<YOUR WINDOWS USERNAME>\AppData\Local\Arma 2 OA\ArmA2OA.RPT
- This uses Click Actions by Mudzereli as a dependancy: https://github.com/mudzereli/DayZEpochDeployableBike/tree/master/overwrites/click_actions
-
Move the
scripts
folder and filescripts\locateVehicle.sqf
to your mission folder root preserving directory structure.scripts\locateVehicle.sqf
-
Edit your clickActions\config.sqf and add this line to your DZE_CLICK_ACTIONS array:
["ItemMap","Identify Keys","execVM 'scripts\locateVehicle.sqf';","true"]
For example:
DZE_CLICK_ACTIONS = [ ["ItemGPS","Scan Nearby","if(isNil 'DZE_CLICK_ACTIONS_GPS_RANGE') then {DZE_CLICK_ACTIONS_GPS_RANGE = 1500;};DZE_CLICK_ACTIONS_ZOMBIE_COUNT = count ((position player) nearEntities ['zZombie_Base',DZE_CLICK_ACTIONS_GPS_RANGE]); DZE_CLICK_ACTIONS_MAN_COUNT = count ((position player) nearEntities ['CAManBase',DZE_CLICK_ACTIONS_GPS_RANGE]); format['Within %1 Meters: %2 AI/players, %3 zombies, %4 vehicles',DZE_CLICK_ACTIONS_GPS_RANGE,DZE_CLICK_ACTIONS_MAN_COUNT - DZE_CLICK_ACTIONS_ZOMBIE_COUNT,count ((position player) nearEntities ['zZombie_Base',DZE_CLICK_ACTIONS_GPS_RANGE]),count ((position player) nearEntities ['allVehicles',DZE_CLICK_ACTIONS_GPS_RANGE]) - DZE_CLICK_ACTIONS_MAN_COUNT] call dayz_rollingMessages;","true"], ["ItemGPS","Range Up" ,"if(isNil 'DZE_CLICK_ACTIONS_GPS_RANGE') then {DZE_CLICK_ACTIONS_GPS_RANGE = 1500;};DZE_CLICK_ACTIONS_GPS_RANGE = (DZE_CLICK_ACTIONS_GPS_RANGE + 100) min 2500; format['GPS RANGE: %1',DZE_CLICK_ACTIONS_GPS_RANGE] call dayz_rollingMessages;","true"], ["ItemGPS","Range Down" ,"if(isNil 'DZE_CLICK_ACTIONS_GPS_RANGE') then {DZE_CLICK_ACTIONS_GPS_RANGE = 1500;};DZE_CLICK_ACTIONS_GPS_RANGE = (DZE_CLICK_ACTIONS_GPS_RANGE - 100) max 1000; format['GPS RANGE: %1',DZE_CLICK_ACTIONS_GPS_RANGE] call dayz_rollingMessages;","true"], ["ItemMap","Identify Keys","execVM 'scripts\locateVehicle.sqf';","true"] ];
If it's the last item in the array, then you must make sure you don't have a
,
at the end.
-
In your config<yourServerName>\Battleye\scripts.txt around line 20:
5 deleteMarker
add this to the end of it:!="for \"_i\" from 0 to 60 do {deleteMarkerLocal (\"vehicleMarker\"+ (str _i));};"
So it will then look like this for example:
5 deleteMarker !"} count allDead;\n\n\nif (dayz_oldBodyCount > _bodyCount) then {" !="for \"_i\" from 0 to 60 do {deleteMarkerLocal (\"vehicleMarker\"+ (str _i));};"
-
In your config<yourServerName>\Battleye\scripts.txt around line 14:
5 createMarker
add this to the end of it:!="_marker = createMarkerLocal [\"vehicleMarker\" + (str _i),[_position select 0,_position select 1]];"
So it will then look like this for example:
5 createMarker <CUT> !="_marker = createMarkerLocal [\"vehicleMarker\" + (str _i),[_position select 0,_position select 1]];"