You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
245 B
GDScript
12 lines
245 B
GDScript
1 year ago
|
extends Node
|
||
|
|
||
|
# Event Handler for Forgetting Knowledge
|
||
|
|
||
|
# Signals
|
||
|
signal forgot
|
||
|
|
||
|
# Handle
|
||
|
func handle(knowledge):
|
||
|
if get_tree().get_nodes_in_group("player").size() > 0:
|
||
|
get_tree().get_nodes_in_group("player")[0].think("Forgot: " + knowledge)
|