Garry's Mod Wiki

NPC:StartEngineTask

  NPC:StartEngineTask( number task, number taskData )

Description

Forces the NPC to start an engine task, this has different results for every NPC.

Arguments

1 number task
The id of the task to start, see ai_task.h
2 number taskData
The task data as a float, not all tasks make use of it.