Garry's Mod Wiki

NPC:GetGoalTarget

  Entity NPC:GetGoalTarget()

Description

Returns the entity we are trying to reach, if any.

Returns

1 Entity
The entity we are trying to reach, or NULL.