Garry's Mod Wiki

Schedule:AddTaskEx

  Schedule:AddTaskEx( string start, string run, number data )

Description

Adds a task to the schedule with completely custom function names.

See also Schedule:AddTask.

Arguments

1 string start
The full name of a function on the entity's table to be ran when the task is started.
2 string run
The full name of a function on the entity's table to be ran when the task is continuously running.
3 number data
Task data to be passed into the NPC's functions