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 schedule
The schedule to translate. See SCHED enum.

Returns

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

Do not return anything to not override.