sleep_after_targetless_time ![code/datums/ai/basic_mobs/basic_subtrees/sleep_with_no_target.dm 13](git.png)
Disables AI after a certain amount of time spent with no target, you will have to enable the AI again somewhere else
Vars | |
time_to_wait | Turn off AI if we spend this many seconds without a target |
---|---|
Procs | |
enter_sleep | Disables AI, override to do additional things or something else |
Var Details
time_to_wait ![code/datums/ai/basic_mobs/basic_subtrees/sleep_with_no_target.dm 15](git.png)
Turn off AI if we spend this many seconds without a target
Proc Details
enter_sleep
Disables AI, override to do additional things or something else