Garry's Mod Wiki

Revision Difference

ENTITY:TranslateSchedule#561524

<function name="TranslateSchedule" parent="ENTITY" type="hook">⤶ <added>2023.12.07</added>⤶ <description>⤶ Called by the engine to alter NPC schedules, if desired by the NPC.⤶ ⤶ <note>This hook only exists for `ai` type SENTs.</note>⤶ </description>⤶ <realm>Server</realm>⤶ <args>⤶ <arg name="schedule" type="number">The schedule to translate. See <page>Enums/SCHED</page>.</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="number">The schedule that should override the incoming schedule. See <page>Enums/SCHED</page>.⤶ ⤶ Do not return anything to not override.</ret>⤶ </rets>⤶ </function>⤶