Garry's Mod Wiki

Garry's Mod Wiki

  NPC:TaskFail( string failReason )

Description

Marks the current NPC task as failed.

This is meant to be used alongside NPC:TaskComplete to complete or fail custom Lua defined tasks. (Schedule:AddTask)

Arguments

1 string failReason
Fail reason to be passed onto ENTITY:OnTaskFailed. The fail reason can also be seen when the NPC's ent_text is active.

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...