Entity/Use

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Entry was incorrected, added missing fields, going from information on the old maturis.tv wiki)
Line 8: Line 8:
 
{{Arg
 
{{Arg
 
|type=Player
 
|type=Player
|name=User
+
|name=Activator
 
|desc=The player to credit with activating the entity.
 
|desc=The player to credit with activating the entity.
 +
}}
 +
{{Arg
 +
|type=Entity
 +
|name=Caller
 +
|desc=Used when an entity instead of a player should trigger the use.
 +
}}
 +
{{Arg
 +
|type=number
 +
|name=UseType
 +
|desc=The type of use to trigger. See {{Enum|USE}}
 +
}}
 +
{{Arg
 +
|type=number
 +
|name=Integer
 +
|desc=You can usually set this to 1.
 
}}
 
}}

Revision as of 16:19, 4 July 2016

 Entity:Use( )

Contents

Description

Activates the entity, as if a player pressed the Use key (Default E) on it.

Arguments

Player Activator

The player to credit with activating the entity.

Arguments

Entity Caller

Used when an entity instead of a player should trigger the use.

Arguments

number UseType

The type of use to trigger. See USE_ Enums

Arguments

number Integer

You can usually set this to 1.
Personal tools
Navigation