Player.PickupObject

From GMod Wiki

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