ENTITY:OnTaskFailed
Description
Called when a task this NPC was running has failed for whatever reason.
This hook only exists for
ai
type SENTs.Arguments
1 number failCode
The fail code for the task. It will be a FAIL_ enum or a generated code for a custom string. (second argument)