Entity/Use

From Garry's Mod
Revision as of 23:08, 19 May 2013 by MKW9813 (Talk | contribs)
Jump to: navigation, search
 Entity:Use( )

Contents

Description

Called when an entity is used. (Default, 'E' is pressed)

Arguments

Player User

The player that used the entity.

Examples

Example

Removes itself when used.

function ENT:Use(ply)
self.Entity:Remove();
end;


Personal tools
Navigation