ENTITY:AcceptInput
Description
Called when another entity fires an event to this entity.
Arguments
2 Entity activator
The initial cause for the input getting triggered. (e.g. the player who pushed a button)
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.
Garry's Mod
Rust
Steamworks
Wiki Help