Garry's Mod Wiki


  boolean ENTITY:AcceptInput( string inputName, Entity activator, Entity caller, string data )


Called when another entity fires an event to this entity.


1 string inputName
The name of the input that was triggered.
2 Entity activator
The initial cause for the input getting triggered. (EG the player who pushed a button)
3 Entity caller
The entity that directly triggered the input. (EG the button that was pushed)
4 string data
The data passed.


1 boolean
Should we suppress the default action for this input?