Garry's Mod Wiki

Entity:Input

Entity:Input( string input, Entity activator, Entity caller, any param = nil )

Description

Fires input to the entity with the ability to make another entity responsible, bypassing the event queue system.

You should only use this function over Entity:Fire if you know what you are doing.

See also Entity:Fire for a function that conforms to the internal map IO event queue and GM:AcceptInput for a hook that can intercept inputs.

Arguments

1 string input
The name of the input to fire
2 Entity activator
The entity that caused this input (i.e. the player who pushed a button)
3 Entity caller
The entity that is triggering this input (i.e. the button that was pushed)
4 any param = nil
The value to give to the input. Can be either a string, a number or a boolean.

Page Links


Special Pages


Wikis

?

Render Time: 79ms

DB GetPage 32
Generate Html 23
SaveChanges (1) 10
Render Body 0
Render Sidebar 12