Add a "Require line of sight" constraint to the Entity Attack widget
HipHopHuman opened this issue ยท 5 comments
Describe the feature
A checkbox on the configuration modal for the Entity Attack widget, labelled "Require line of sight", that when enabled, forces the drone into a behavior where it will only attack entities that it can see.
Reasons why it should be considered
At the moment, drones can sometimes attack entities that are behind solid boundaries such as walls. For those wanting a little more flexibility in attack behavior, this will be useful.
Additional details
No response
Added in 1.18.2 (3.1.4 release), but I'll probably backport this to 1.16.5. So keeping it open for now.
Is there any way to control this via the Drone Interface when calling setAction("entity_attack")
?