Garry's Mod Wiki

ENTITY:OverrideMoveFacing

  boolean ENTITY:OverrideMoveFacing( number interval, table AILMG )

Description

Called to completely override the direction NPC will be facing during navigation.

This hook only exists for ai type SENTs.
This hook is called by the default movement hook. Returning true inside ENTITY:OverrideMove will prevent engine from calling this hook.

Arguments

1 number interval
Time interval for the movement, in seconds. Usually time since last movement.
2 table AILMG
Extra data for the movement. A table containing the following data:

Returns

1 boolean
Return true to disable the default movement facing code.