Entity.Fire

From GMod Wiki

Jump to: navigation, search
Function
Syntax Entity:Fire( String input, String param, Number delay )
Description:
Fires an entity's input.
Returns: nil
In Object: Entity
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.Fire]Entity.Fire [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionTurns all of the props on the map purple.
Used onNewerServer.png
Code
-- This makes all prop_physics in the map purple:
function Purplize()
    for k,v in pairs(ents.FindByClass("prop_physics")) do
        v:Fire("color","255 0 255",0)
    end
end
 
OutputAll props on the map turn purple.


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox