Skip to content

Light weight and simple vehicle location script that supports multiple vehicles per key

Notifications You must be signed in to change notification settings

BigEgg17/locateVehicle

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

[EPOCH 1.0.6.1] Locate Vehicles

REPORTING ERRORS/PROBLEMS

  1. 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

Install:

>> Download <<

Mission folder install:

  1. Move the scripts folder and file scripts\locateVehicle.sqf to your mission folder root preserving directory structure.

    scripts\locateVehicle.sqf
  2. 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.

BattlEye filters:

  1. 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));};"
  2. 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]];"

About

Light weight and simple vehicle location script that supports multiple vehicles per key

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • SQF 100.0%