Garry's Mod Wiki

ai.GetTaskID

  number ai.GetTaskID( string task )

Description

Translates a task name to its corresponding ID.

Arguments

1 string task
The task name.

Returns

1 number
The task ID, see ai_task.h. Returns -1 if the schedule name isn't valid.