Player.PickupObject
From GMod Wiki
Revision as of 18:01, 10 June 2011 by (#>) Mwr247 (Mike) (Talk | contribs)
Function | |
Syntax | Player:PickupObject( Entity ) |
Description: | |
Holds an entity in front of the player. | |
Returns: | nil |
In Object: | Player |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Player.PickupObject]Player.PickupObject [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Picks up an entity. |
---|---|
Used on | |
Code | function pickupEnt(ent) ply:PickupObject(ent) end |
Output | Player will now be holding the entity in front of them. |
Additional Notes
- If called for a player while an entity is already held, the first entity will still be stuck mid air and cannot be held again.