Garry's Mod Wiki

Garry's Mod Wiki

  ENTITY:OnTaskFailed( number failCode, string failReason )

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)
2 string failReason
If set, a custom reason for the failure.

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 four times a day. Edits and history are not available.

Last Parsed: Loading...