Revision Difference
ENTITY:OnCondition#553168
<function name="OnCondition" parent="ENTITY" type="hook">
<ishook>yes</ishook>⤶
<description>Called each time the NPC updates its condition.
<note>This hook only exists for `ai` type [SENTs](Scripted_Entities).</note>
</description>
<realm>Server</realm>
<args>
<arg name="conditionID" type="number">The ID of condition. See <page>NPC:ConditionName</page>.</arg>
</args>
</function>