Garry's Mod Wiki

NPC:TaskFail

  NPC:TaskFail( string task )

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 task
A string most likely defined as a Source Task, for more information on Tasks go to https://developer.valvesoftware.com/wiki/Task