Gamemode.PhysgunDrop

From GMod Wiki

Jump to: navigation, search
Event Hook
Hook NamePhysgunDrop
SyntaxGM:PhysgunDrop( Player Player, Entity ent )
DescriptionCalled when a player drops an entity with the Physgun
ReturnsNil
Lua StateNewerShared.png
BBCode[b][url=wiki.garrysmod.com/?title=Gamemode.PhysgunDrop]Gamemode.PhysgunDrop [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionPrints the model of the entity to the player.
Used onNewerShared.png
Code
function ModelPrinter( ply, ent )
	ply:PrintMessage(HUD_PRINTTALK, "Entity Model: ".. ent:GetModel() )
end
hook.Add("PhysgunDrop", "ModelPrinter", ModelPrinter)
OutputN/A
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox