mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-27 14:07:51 +01:00
3 lines
1.9 KiB
HTML
3 lines
1.9 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><base href="../../../../"><link rel="stylesheet" href="dmdoc.css"><title>code/datums/ai/generic/find_and_set.dm - Space Station 13</title></head><body><header><a href="index.html">Space Station 13</a> - <a href="index.html#modules">Modules</a> - <a href="index.html#types">Types</a></header><main><h1>code/datums/ai/generic/find_and_set.dm <a href="https://github.com/ParadiseSS13/Paradise/blob/776b9861f70566b1e6a0763a465ef22f7920a3d6/code/datums/ai/generic/find_and_set.dm"><img src="git.png" width="16" height="16" title="code/datums/ai/generic/find_and_set.dm"></a></h1><table class="summary" cellspacing="0"><tr><th>/<a href="datum.html">datum</a>/<a href="datum/ai_behavior.html">ai_behavior</a>/find_and_set</th><td>Finds an item near themselves, sets a blackboard key as it. Very useful for AIs that need to use machines or something.
|
|
If you want to do something more complicated than find a single atom, change the search_tactic() proc
|
|
cool tip: search_tactic() can set lists</td></tr><tr><th>/<a href="datum.html">datum</a>/<a href="datum/ai_behavior.html">ai_behavior</a>/find_and_set/in_list</th><td>Variant of find and set that takes a list of things to find.</td></tr><tr><th>/<a href="datum.html">datum</a>/<a href="datum/ai_behavior.html">ai_behavior</a>/find_and_set/pawn_must_hold_item</th><td>Variant of find and set that fails if the living pawn doesn't hold something</td></tr><tr><th>/<a href="datum.html">datum</a>/<a href="datum/ai_behavior.html">ai_behavior</a>/find_and_set/edible</th><td>Variant of find and set that also requires the item to be edible. checks hands too</td></tr></table></main><footer>paradise.dme <a href="https://github.com/ParadiseSS13/Paradise/tree/776b9861f70566b1e6a0763a465ef22f7920a3d6">776b986</a> (master) — <a href="https://github.com/SpaceManiac/SpacemanDMM/blob/master/crates/dmdoc/README.md">dmdoc 1.11.0</a></footer></body></html> |