Show network Ping & start AI behaviour tree

This commit is contained in:
2023-01-22 23:44:41 +01:00
parent ce7b74c832
commit 26f17fbd03
89 changed files with 2839 additions and 53 deletions

9
scenes/map/NearEnemy.gd Normal file
View File

@@ -0,0 +1,9 @@
extends BTCondition
class_name NearEnemy
@export var player_detection_distance:int = 50
func tick(actor:Node2D, _blackboard:BTBlackboard) -> int:
if actor.enemies_in_range.size() > 0:
return BTTickResult.SUCCESS
return BTTickResult.FAILURE