Garry's Mod Wiki

Garry's Mod Wiki

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

Description

Called when another entity fires an event to this entity.

Arguments

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

Returns

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

Returning true for unknown inputs will also prevent the game complaining about the unknown input in console with developer 2.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...