Schedule:AddTask
Description
Adds a task to the schedule. See also Schedule:AddTaskEx if you wish to customize task start and run function names.
See also ENTITY:StartSchedule, NPC:StartEngineTask, and NPC:RunEngineTask.
Arguments
Example
This creates a new schedule with a task named "HelloWorld" that is defined to print the taskdata passed in.
Output: Prints "HELLO" in the console, then prints "HELLO again" on every NPC think until 5 seconds have passed.