Garry's Mod Wiki

ENTITY:StartTask

  ENTITY:StartTask( Task task )

Description

Called once on starting task.

This hook only exists for ai type SENTs.

Arguments

1 Task task
The task to start, created by ai_task.New.

Example

How it is defined:

function ENT:StartTask( task ) task:Start( self.Entity ) end