Garry's Mod Wiki

ENTITY:TranslateSchedule

  number ENTITY:TranslateSchedule( number schedule )

Description

Called by the engine to alter NPC schedules, if desired by the NPC.

This hook only exists for ai type SENTs.

Arguments

1 number with SCHED enum schedule
The schedule to translate. See SCHED enum.

Returns

1 number with SCHED enum
The schedule that should override the incoming schedule.

Not returning anything, or returning a non value will perform the default action.