Gamemode.GravGunOnPickedUp

From GMod Wiki

Revision as of 09:26, 10 May 2011 by theJ89 (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Event Hook
Hook NameGravGunOnPickedUp
SyntaxGM:GravGunOnPickedUp( Player ply, Entity ent )
DescriptionEnable/Disable the picking up of entities with the gravity gun.
ReturnsNil
Lua StateNewerServer.png
BBCode[b][url=wiki.garrysmod.com/?title=Gamemode.GravGunOnPickedUp]Gamemode.GravGunOnPickedUp [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionIgnites you when you try and pickup an object with the gravity gun.
Used onNewerServer.png
Code
local function GravPickup( pl, ent )
	pl:Ignite(10, 0); // Ignite the player who tries to pick up a object with gravity gun.
end
hook.Add("GravGunOnPickedUp", "GravPickup", GravPickup);
OutputN/A


Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox