Space Station 13 - Modules - TypesDefine Details

code/__DEFINES/ai/ai_defines.dm

AI_STATUS_ONThe AI is currently active.
AI_STATUS_OFFThe AI is currently offline for any reason.
AI_STATUS_IDLEThe AI is currently in idle mode.
AI_FAILED_PLANNING_COOLDOWNCooldown on planning if planning failed last time
AI_CONTROLLER_INCOMPATIBLEFlags for ai_behavior new()
AI_BEHAVIOR_DELAYUpdate this behavior's cooldown
AI_BEHAVIOR_SUCCEEDEDFinish the behavior successfully
AI_BEHAVIOR_FAILEDFinish the behavior unsuccessfully
AI_BEHAVIOR_REQUIRE_MOVEMENTDoes this task require movement from the AI before it can be performed?
AI_BEHAVIOR_REQUIRE_REACHDoes this require the current_movement_target to be adjacent and in reach?
AI_BEHAVIOR_MOVE_AND_PERFORMDoes this task let you perform the action while you move closer? (Things like moving and shooting)
AI_BEHAVIOR_KEEP_MOVE_TARGET_ON_FINISHDoes finishing this task not null the current movement target?
AI_BEHAVIOR_CAN_PLAN_DURING_EXECUTIONDoes this behavior NOT block planning?
AI_FLAG_STOP_MOVING_WHEN_PULLEDDon't move if being pulled
AI_FLAG_CAN_ACT_WHILE_DEADContinue processing even if dead
AI_FLAG_PAUSE_DURING_DO_AFTERStop processing while in a progress bar
AI_FLAG_CAN_ACT_IN_STASISContinue processing while in stasis
SUBTREE_RETURN_FINISH_PLANNINGThis subtree should cancel any further planning, (Including from other subtrees)

Define Details

AI_BEHAVIOR_CAN_PLAN_DURING_EXECUTION

Does this behavior NOT block planning?

AI_BEHAVIOR_DELAY

Update this behavior's cooldown

AI_BEHAVIOR_FAILED

Finish the behavior unsuccessfully

AI_BEHAVIOR_KEEP_MOVE_TARGET_ON_FINISH

Does finishing this task not null the current movement target?

AI_BEHAVIOR_MOVE_AND_PERFORM

Does this task let you perform the action while you move closer? (Things like moving and shooting)

AI_BEHAVIOR_REQUIRE_MOVEMENT

Does this task require movement from the AI before it can be performed?

AI_BEHAVIOR_REQUIRE_REACH

Does this require the current_movement_target to be adjacent and in reach?

AI_BEHAVIOR_SUCCEEDED

Finish the behavior successfully

AI_CONTROLLER_INCOMPATIBLE

Flags for ai_behavior new()

AI_FAILED_PLANNING_COOLDOWN

Cooldown on planning if planning failed last time

AI_FLAG_CAN_ACT_IN_STASIS

Continue processing while in stasis

AI_FLAG_CAN_ACT_WHILE_DEAD

Continue processing even if dead

AI_FLAG_PAUSE_DURING_DO_AFTER

Stop processing while in a progress bar

AI_FLAG_STOP_MOVING_WHEN_PULLED

Don't move if being pulled

AI_STATUS_IDLE

The AI is currently in idle mode.

AI_STATUS_OFF

The AI is currently offline for any reason.

AI_STATUS_ON

The AI is currently active.

SUBTREE_RETURN_FINISH_PLANNING

This subtree should cancel any further planning, (Including from other subtrees)