From 339e77e8d96f40ea9a5173a38ab3c7847a382953 Mon Sep 17 00:00:00 2001 From: HARLAN Date: Mon, 9 Dec 2013 11:41:12 -0500 Subject: [PATCH] plot pole radius preview --- SQF/dayz_code/compile/fn_selfActions.sqf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SQF/dayz_code/compile/fn_selfActions.sqf b/SQF/dayz_code/compile/fn_selfActions.sqf index 2d566820a..528ce0d60 100644 --- a/SQF/dayz_code/compile/fn_selfActions.sqf +++ b/SQF/dayz_code/compile/fn_selfActions.sqf @@ -190,11 +190,14 @@ if (!isNull cursorTarget and !_inVehicle and !_isPZombie and (player distance cu _player_lockUnlock_crtl = false; if (_canDo && (speed player <= 1) && (_cursorTarget isKindOf "Plastic_Pole_EP1_DZ")) then { + s_player_plotpole_preview = player addAction ["Preview Plot Radius", "\z\addons\dayz_code\compile\object_showPlotRadius.sqf",[], 0, false, true, "", ""]; if (s_player_maintain_area < 0) then { s_player_maintain_area = player addAction ["Maintain Area", "\z\addons\dayz_code\actions\maintain_area.sqf", "maintain", 5, false]; s_player_maintain_area_preview = player addAction ["Maintain Area Preview", "\z\addons\dayz_code\actions\maintain_area.sqf", "preview", 5, false]; }; } else { + player removeAction s_player_plotpole_preview; + s_player_plotpole_preview = -1; player removeAction s_player_maintain_area; s_player_maintain_area = -1; player removeAction s_player_maintain_area_preview;