Garry's Mod Wiki

Revision Difference

Entity:Input#518499

<function name="Input" parent="Entity" type="classfunc"> <description> Fires input to the entity with the ability to make another entity responsible. See also <page>Entity:Fire</page> and <page>GM:AcceptInput</page>. </description> <realm>Server</realm> <args> <arg name="input" type="string">The name of the input to fire</arg> <arg name="activator" type="Entity">The entity that caused this input (EG the player who pushed a button)</arg> <arg name="caller" type="Entity">The entity that is triggering this input (EG the button that was pushed)</arg> <arg name="param" type="any" default="nil">The value to give to the input. Can be either a &lt;page&gt;string&lt;/page&gt;, a &lt;page&gt;number&lt;/page&gt; or a &lt;page&gt;boolean&lt;/page&gt;.</arg> <arg name="param" type="any" default="nil">The value to give to the input. Can be either a <page>string</page>, a <page>number</page> or a <page>boolean</page>.</arg> </args> </function>