Pass cursorTarget to maintain_area.sqf

CursorTarget should always be passed from fn_selfActions, not reacquired
in action scripts. This is to ensure the same object is referenced. Plot
Management maintain_area is called from the dialog button, not
fn_selfactions.
This commit is contained in:
ebaydayz
2016-05-19 13:10:20 -04:00
parent 1a238d1719
commit 914b37a413
7 changed files with 6 additions and 16 deletions

View File

@@ -9,7 +9,7 @@ s_player_maintain_area = 1;
player removeAction s_player_maintain_area_preview;
s_player_maintain_area_preview = 1;
_target = cursorTarget; // Plastic_Pole_EP1_DZ
_target = (_this select 3) select 1; // Plastic_Pole_EP1_DZ
_objectClasses = DZE_maintainClasses;
_range = DZE_maintainRange; // set the max range for the maintain area
@@ -54,7 +54,7 @@ switch true do {
_option = _this select 3;
_option = (_this select 3) select 0;
switch _option do {
case "maintain": {