Garry's Mod Wiki

ENTITY:RunEngineTask

  boolean ENTITY:RunEngineTask( number taskID, number taskData )

Description

Called when an engine task is ran on the entity.

This hook only exists for ai type SENTs

Arguments

1 number taskID
The task ID, see ai_task.h
2 number taskData
The task data.

Returns

1 boolean
true to prevent default action