Garry's Mod Wiki

Task:InitFunctionName

  Task:InitFunctionName( string startname, string runname, number taskdata )

Description

Initialises the AI task as NPC method-based.

Arguments

1 string startname
The name of the NPC method to call on task start.
2 string runname
The name of the NPC method to call on task run.
3 number taskdata