Player.GetShootPos

From GMod Wiki

Revision as of 17:51, 25 September 2009 by Crazy Quebecer (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax Entity:GetShootPos( )
Description:
Returns the gun's shoot position
Returns: Vector
In Object: Entity
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.GetShootPos]Player.GetShootPos [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionCreates an entity at the Player.GetShootPos of the player.
Used onNewerServer.png
Code
ent = ents.Create( "prop_physics" )
  ent:SetPos( self.Owner:GetShootPos() )
  ent:SetAngles( self.Owner:GetAngles() )
  ent:SetOwner( self.Owner )
ent:Spawn( )
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox