Revision Difference
ENTITY:OnTaskFailed#552879
<function name="OnTaskFailed" parent="ENTITY" type="hook">
<ishook>yes</ishook>⤶
<description>Called when a task this NPC was running has failed for whatever reason.
<note>This hook only exists for `ai` type [SENTs](Scripted_Entities).</note>
</description>
<realm>Server</realm>
<added>2023.10.09</added>
<args>
<arg name="failCode" type="number">The fail code for the task.</arg>
<arg name="failReason" type="string">If set, a custom reason for the failure.</arg>
</args>
</function>