Garry's Mod Wiki

NPC:GetShootPos

  Vector NPC:GetShootPos()

Description

Returns the shooting position of the NPC.

This only works properly when called on an NPC that can hold weapons, otherwise it will return the same value as Entity:GetPos.

Returns

1 Vector
The NPC's shooting position.