Player.PickupObject

From GMod Wiki

Revision as of 18:01, 10 June 2011 by (#>) Mwr247 (Mike) (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax Player:PickupObject( Entity )
Description:
Holds an entity in front of the player.
Returns: nil
In Object: Player
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.PickupObject]Player.PickupObject [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionPicks up an entity.
Used onNewerServer.png
Code
function pickupEnt(ent)
  ply:PickupObject(ent)
end
OutputPlayer will now be holding the entity in front of them.


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox