Garry's Mod Wiki

ENTITY:TaskFinished

  boolean ENTITY:TaskFinished()

Description

Returns true if the current running Task is finished. Tasks finish whenever NPC:TaskComplete is called, which sets TASKSTATUS_COMPLETE for all NPCs, also sets self.bTaskComplete for ai type SENTs.

This hook only exists for ai type SENTs.

Returns

1 boolean
Is the current running Task is finished or not.