Player.DropObject

From GMod Wiki

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