Entity.Input

From GMod Wiki

Jump to: navigation, search
Function
Syntax Entity:Input( String input, Entity activator, Entity inflictor, Var param )
Description:
Similar to Entity:Fire, but you can make the entity think another entity is responsible! This triggers an input, for example, like a func_button's Press input.
Returns: nil
In Object: Entity
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.Input]Entity.Input [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionMakes the game think a certain player pressed a button.
Used onNewerServer.png
Code
function makePlayerPressButton(Player,Button)
    Button:Input("Press",Player,Player)
end
OutputNone


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox