Garry's Mod Wiki

ENTITY:OverrideMove

  boolean ENTITY:OverrideMove( number interval )

Description

Called to completely override NPC movement. This can be used for example for flying NPCs.

This hook only exists for ai type SENTs.

Arguments

1 number interval
Time interval for the movement, in seconds. Usually time since last movement.

Returns

1 boolean
Return true to disable the default movement code.