stealthy/mean_dude.gd

15 lines
294 B
GDScript

class_name MeanDude
extends Node
@export var blackboard: Blackboard
func _ready():
$BeehaveTree.blackboard = blackboard
func say_shit(shit):
print(self.name, ": ", shit)
func can_see_name(name: String) -> bool:
return $Eyes.get_overlapping_bodies().any(func(b): return b.name == name)