Garry's Mod Wiki

ENTITY:OnCondition

  ENTITY:OnCondition( number conditionID )

Description

Called each time the NPC updates its condition.

This hook only exists for ai type SENTs.

Arguments

1 number conditionID
The ID of condition. See NPC:ConditionName.