Garry's Mod Wiki

Revision Difference

Entity:Use(function)#527465

<function name="Use" parent="Entity" type="classfunc">⤶ <ishook>no</ishook>⤶ <description>⤶ Simulates a `+use` action on an entity.⤶ </description>⤶ <realm>Server</realm>⤶ <predicted>No</predicted>⤶ <args>⤶ <arg name="activator" type="Entity">The entity that caused this input. This will usually be the player who pressed their use key</arg>⤶ <arg name="caller" type="Entity">The entity responsible for the input. This will typically be the same as `activator` unless some other entity is acting as a proxy</arg>⤶ <arg name="useType" type="number">Use type, see <page>Enums/USE</page>.</arg>⤶ <arg name="value" type="number">Any value.</arg>⤶ </args>⤶ </function>