Goonstation 13 - Modules - Types

code/mob/living/critter/ai/mimic.dm

/datum/aiTask/timed/wait_in_ambushWait in ambush - while hidden, stay hidden until a potential target is nearby, then interupt AI so ambush or attack can trigger
/datum/aiTask/sequence/goalbased/ambushIf a target is in range and we're hiding, attack them until they're incapacitated
/datum/aiTask/sequence/goalbased/run_and_hideIf a target can see us and we're not hiding, then lets run away and hide