mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-22 20:12:20 +03:00
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:
@@ -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": {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user