Garry's Mod Wiki

Garry's Mod Wiki

Description

Enumerations for NPC schedules, used by ENTITY:StartEngineSchedule and NPC:SetSchedule. Serverside only.

Values

LAST_SHARED_SCHEDULE88The schedule enum limit
SCHED_AISCRIPT56Begins AI script based on NPC's m_hCine save value.
SCHED_ALERT_FACE5Idle stance and face ideal yaw angles.
SCHED_ALERT_FACE_BESTSOUND6
SCHED_ALERT_REACT_TO_COMBAT_SOUND7
SCHED_ALERT_SCAN8Rotate 180 degrees and back to check for enemies.
SCHED_ALERT_STAND9Remain idle until an enemy is heard or found.
SCHED_ALERT_WALK10Walk until an enemy is heard or found.
SCHED_AMBUSH52Remain idle until provoked or an enemy is found.
SCHED_ARM_WEAPON48Performs ACT_ARM.
SCHED_BACK_AWAY_FROM_ENEMY24Back away from enemy. If not possible to back away then go behind enemy.
SCHED_BACK_AWAY_FROM_SAVE_POSITION26Requires valid enemy, backs away from SaveValue: m_vSavePosition
SCHED_BIG_FLINCH23Heavy damage was taken for the first time in a while.
SCHED_CHASE_ENEMY17Begin chasing an enemy.
SCHED_CHASE_ENEMY_FAILED18Failed to chase enemy.
SCHED_COMBAT_FACE12Face current enemy.
SCHED_COMBAT_PATROL75Will walk around patrolling an area until an enemy is found.
SCHED_COMBAT_STAND15
SCHED_COMBAT_SWEEP13
SCHED_COMBAT_WALK16
SCHED_COWER40When not moving, will perform ACT_COWER.
SCHED_DIE53Regular NPC death.
SCHED_DIE_RAGDOLL54Plays NPC death sound (doesn't kill NPC).
SCHED_DISARM_WEAPON49Holsters active weapon. (Only works with NPC's that can holster weapons)
SCHED_DROPSHIP_DUSTOFF79
SCHED_DUCK_DODGE84Preform Ducking animation. (Only works with npc_alyx)
SCHED_ESTABLISH_LINE_OF_FIRE35Search for a place to shoot current enemy.
SCHED_ESTABLISH_LINE_OF_FIRE_FALLBACK36Fallback from an established line of fire.
SCHED_FAIL81Failed doing current schedule.
SCHED_FAIL_ESTABLISH_LINE_OF_FIRE38Failed to establish a line of fire.
SCHED_FAIL_NOSTOP82
SCHED_FAIL_TAKE_COVER31Failed to take cover.
SCHED_FALL_TO_GROUND78Fall to ground when in the air.
SCHED_FEAR_FACE14Will express fear face. (Only works on NPCs with expressions)
SCHED_FLEE_FROM_BEST_SOUND29
SCHED_FLINCH_PHYSICS80Plays ACT_FLINCH_PHYSICS.
SCHED_FORCED_GO71Force walk to SaveValue: m_vecLastPosition (debug).
SCHED_FORCED_GO_RUN72Force run to SaveValue: m_vecLastPosition (debug).
SCHED_GET_HEALTHKIT66Pick up item if within a radius of 5 units.
SCHED_HIDE_AND_RELOAD50Take cover and reload weapon.
SCHED_IDLE_STAND1Idle stance
SCHED_IDLE_WALK2Walk to position.
SCHED_IDLE_WANDER3Walk to random position within a radius of 200 units.
SCHED_INTERACTION_MOVE_TO_PARTNER85
SCHED_INTERACTION_WAIT_FOR_PARTNER86
SCHED_INVESTIGATE_SOUND11
SCHED_MELEE_ATTACK141
SCHED_MELEE_ATTACK242
SCHED_MOVE_AWAY68Move away from player.
SCHED_MOVE_AWAY_END70Stop moving and continue enemy scan.
SCHED_MOVE_AWAY_FAIL69Failed to move away; stop moving.
SCHED_MOVE_AWAY_FROM_ENEMY25Move away from enemy while facing it and checking for new enemies.
SCHED_MOVE_TO_WEAPON_RANGE34Move to the range the weapon is preferably used at.
SCHED_NEW_WEAPON63Pick up a new weapon if within a radius of 5 units.
SCHED_NEW_WEAPON_CHEAT64Fail safe: Create the weapon that the NPC went to pick up if it was removed during pick up schedule.
SCHED_NONE0No schedule is being performed.
SCHED_NPC_FREEZE73Prevents movement until COND.NPC_UNFREEZE(68) is set.
SCHED_PATROL_RUN76Run to random position and stop if enemy is heard or found.
SCHED_PATROL_WALK74Walk to random position and stop if enemy is heard or found.
SCHED_PRE_FAIL_ESTABLISH_LINE_OF_FIRE37
SCHED_RANGE_ATTACK143
SCHED_RANGE_ATTACK244
SCHED_RELOAD51Stop moving and reload until danger is heard.
SCHED_RUN_FROM_ENEMY32Retreat from the established enemy.
SCHED_RUN_FROM_ENEMY_FALLBACK33
SCHED_RUN_FROM_ENEMY_MOB83
SCHED_RUN_RANDOM77Run to random position within a radius of 500 units.
SCHED_SCENE_GENERIC62
SCHED_SCRIPTED_CUSTOM_MOVE59
SCHED_SCRIPTED_FACE61
SCHED_SCRIPTED_RUN58
SCHED_SCRIPTED_WAIT60
SCHED_SCRIPTED_WALK57
SCHED_SHOOT_ENEMY_COVER39Shoot cover that the enemy is behind.
SCHED_SLEEP87Sets the NPC to a sleep-like state.
SCHED_SMALL_FLINCH22
SCHED_SPECIAL_ATTACK145
SCHED_SPECIAL_ATTACK246
SCHED_STANDOFF47
SCHED_SWITCH_TO_PENDING_WEAPON65
SCHED_TAKE_COVER_FROM_BEST_SOUND28
SCHED_TAKE_COVER_FROM_ENEMY27Take cover from current enemy.
SCHED_TAKE_COVER_FROM_ORIGIN30Flee from SaveValue: vLastKnownLocation
SCHED_TARGET_CHASE21Chase set NPC target.
SCHED_TARGET_FACE20Face NPC target.
SCHED_VICTORY_DANCE19Human victory dance.
SCHED_WAIT_FOR_SCRIPT55
SCHED_WAIT_FOR_SPEAK_FINISH67
SCHED_WAKE_ANGRY4Spot an enemy and go from an idle state to combat state.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...