Garry's Mod Wiki

NPC:GetEnemyLastKnownPos

  Vector NPC:GetEnemyLastKnownPos( Entity enemy = GetEnemy() )

Description

Returns the last known position of an NPC's enemy.

Similar to NPC:GetEnemyLastSeenPos, but the known position will be a few seconds ahead of the last seen position.

Arguments

1 Entity enemy = GetEnemy()
The enemy to check.

Returns

1 Vector pos
The last known position.