ENTITY:OverrideMoveFacing
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
2 table data
Extra data for the movement. A table containing the following data:
- boolean hasTraced - The result if a forward probing trace has been done
- number expectedDist - The distance expected to move this think
- number flags - AILMG flags
- number maxDist - The distance maximum distance intended to travel in path length
- number navType - NAV enum
- number speed - The sequence ground speed. Note these need not always agree with
target
- Entity moveTarget - Target entity
- Vector dir - The actual move. Note these need not always agree with
target
- Vector facing - The actual move. Note these need not always agree with
target
- Vector target - Object of the goal