Garry's Mod Wiki

Revision Difference

ENTITY:AcceptInput#515633

<function name="AcceptInput" parent="ENTITY" type="hook">⤶ <ishook>yes</ishook>⤶ <description>Called when another entity fires an event to this entity.</description>⤶ <realm>Server</realm>⤶ <predicted>No</predicted>⤶ <args>⤶ <arg name="inputName" type="string">The name of the input that was triggered.</arg>⤶ <arg name="activator" type="Entity">The initial cause for the input getting triggered. (EG the player who pushed a button)</arg>⤶ <arg name="caller" type="Entity">The entity that directly triggered the input. (EG the button that was pushed)</arg>⤶ <arg name="data" type="string">The data passed.</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="boolean">Should we suppress the default action for this input?</ret>⤶ </rets>⤶ </function>⤶ ⤶