Garry's Mod Wiki

ENTITY:StartEngineTask

  boolean ENTITY:StartEngineTask( number taskID, number TaskData )

Description

Called when an engine task has been started on the entity.

This hook only exists for ai type SENTs.

Arguments

1 number taskID
Task ID to start, see ai_task.h
2 number TaskData
Task data

Returns

1 boolean
true to stop default action