Entity.Input

From GMod Wiki

Revision as of 16:33, 6 January 2011 by Cube334 (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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