Garry's Mod Wiki

Revision Difference

NPC:GetShootPos#563047

<ambig page="Player:GetShootPos">You might be looking for "GetShootPos" intended for players, which redirects here due to a wiki bug.</ambig>⤶ <function name="GetShootPos" parent="NPC" type="classfunc"> <description> Returns the shooting position of the NPC. ⤶ <note>This only works properly when called on an NPC that can hold weapons, otherwise it will return the same value as <page>Entity:GetPos</page>.</note>⤶ Returns the shooting position of the NPC, i.e. where their bullets would come from, etc. ⤶ If the NPC does not overwrite this, it will return <page>Entity:GetPos</page>. </description> <realm>Server</realm> <rets> <ret name="" type="Vector">The NPC's shooting position.</ret> </rets> </function>