Player.DropObject

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:DropObject( Entity )
Description:
Drops an entity held by the player though Player.PickupObject.
Returns: nil
In Object: Player
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.DropObject]Player.DropObject [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionDrops a held entity.
Used onNewerServer.png
Code
function dropEnt(ent)
  ply:DropObject(ent)
end
OutputPlayer will drop the entity if it was held.


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox