/tg/ Station 13 - Modules - Types

modular_nova/modules/serenitystation/code/mobs/ai/ai_behaviors.dm

/proc/ai_toggle_hidingShared logic for actually flipping a mob's hidden state. Used by both the explicit toggle_hiding leaf and the random_hiding decision leaf.
/datum/bt_node/ai_behavior/toggle_hidingThis behavior is to run any code that needs to be ran when the mob is going into hiding, or coming out from hiding.
/datum/bt_node/ai_behavior/stop_hiding_if_key_setStops hiding if the given blackboard key is currently set. Used to break hiding when a combat/flee target or a retaliation target shows up.