Task
A single AI task. Returned by ai_task.New.
Methods
Task:Init()
This is used internally - although you're able to use it you probably shouldn't.
Initialises the AI task. Called by ai_task. New.
Initialises the AI task as an engine task.
Initialises the AI task as NPC method-based.
Task:IsEngineType()
Determines if the task is an engine task (TYPE_ENGINE, 1).
Task:IsFNameType()
Determines if the task is an NPC method-based task (TYPE_FNAME, 2).
This is used internally - although you're able to use it you probably shouldn't.
Runs the AI task as an NPC method. This requires the task to be of type TYPE_FNAME.
Task:Start_FName( NPC target )
This is used internally - although you're able to use it you probably shouldn't.
Starts the AI task as an NPC method.