SS1984 - Modules - TypesDefine Details

code/__HELPERS/mobs.dm

/proc/random_body_accessoryReturns a random body accessory for a given species name. Can be null based on is_optional argument.
/proc/do_afterTimed 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_warningGets 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_ckeySafe ckey getter
/proc/dviewVersion of view() which ignores darkness, because BYOND doesn't have it.
FACING_FAILEDFacing failed
FACING_SAME_DIRTwo mobs are facing the same direction
FACING_EACHOTHERTwo mobs are facing each others
FACING_INIT_FACING_TARGET_TARGET_FACING_PERPENDICULARTwo mobs one is facing a person, but the other is perpendicular
/proc/check_target_facingsReturns the direction that the initiator and the target are facing
/proc/get_mob_with_client_listReturns a list of all mobs that have an active client
/proc/freeborgWhen an AI is activated, it can choose from a list of non-slaved borgs to have as a slave.
/proc/active_aisReturns a list of all active AIs that can be slaved to
/proc/select_active_ai_with_fewest_borgsFind an active AI with the least number of borgs
/proc/select_active_aiPresents a list of active AIs for selection, or picks one randomly if no user is provided
/proc/get_sorted_mobsReturns a sorted list of mobs by category and status
/proc/getmobsReturns a list of all mobs with their display names as keys
/proc/sort_mobsOrders mobs by type then by name
/proc/get_mindGets 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