Garry's Mod Wiki

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.
Task:InitEngine( string taskname, number taskdata )
Initialises the AI task as an engine task.
Task:InitFunctionName( string startname, string runname, number taskdata )
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).
Task:Run( NPC target )
Runs the AI task.
Task:Run_FName( NPC target )
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( NPC target )
Starts the AI task.
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.

Page Links


Special Pages


Wikis

?

Render Time: 51ms

DB GetPage 8
Generate Html 3
SaveChanges (1) 25
Render Body 0
Render Sidebar 13