code/__HELPERS/mobs.dm 
| /proc/random_body_accessory | Returns a random body accessory for a given species name. Can be null based on is_optional argument. |
|---|---|
| /proc/do_after | Timed action involving one mob user. Target is optional.
Checks that user does not move, change hands, get stunned, etc. for the given delay. |
| /proc/get_mob_in_atom_with_warning | Gets the first mob contained in an atom, and warns the user if there's not exactly one |
| /proc/check_active_security_force | |
| /proc/safe_get_ckey | Safe ckey getter |
| /proc/dview | Version of view() which ignores darkness, because BYOND doesn't have it. |
| FACING_FAILED | Facing failed |
| FACING_SAME_DIR | Two mobs are facing the same direction |
| FACING_EACHOTHER | Two mobs are facing each others |
| FACING_INIT_FACING_TARGET_TARGET_FACING_PERPENDICULAR | Two mobs one is facing a person, but the other is perpendicular |
| /proc/check_target_facings | Returns the direction that the initiator and the target are facing |
| /proc/get_mob_with_client_list | Returns a list of all mobs that have an active client |
| /proc/freeborg | When an AI is activated, it can choose from a list of non-slaved borgs to have as a slave. |
| /proc/active_ais | Returns a list of all active AIs that can be slaved to |
| /proc/select_active_ai_with_fewest_borgs | Find an active AI with the least number of borgs |
| /proc/select_active_ai | Presents a list of active AIs for selection, or picks one randomly if no user is provided |
| /proc/get_sorted_mobs | Returns a sorted list of mobs by category and status |
| /proc/getmobs | Returns a list of all mobs with their display names as keys |
| /proc/sort_mobs | Orders mobs by type then by name |
| /proc/get_mind | Gets the mind from a variable, whether it be a mob, or a mind itself. Also works on brains - it will try to fetch the brainmob's mind. If [include_last] is true, then it will also return last_mind for carbons if there isn't a current mind. |
Define Details
FACING_EACHOTHER 
Two mobs are facing each others
FACING_FAILED 
Facing failed
FACING_INIT_FACING_TARGET_TARGET_FACING_PERPENDICULAR 
Two mobs one is facing a person, but the other is perpendicular
FACING_SAME_DIR 
Two mobs are facing the same direction