Entity.TriggerOutput

From GMod Wiki

Revision as of 04:58, 15 October 2010 by Grea$eMonkey (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax Entity:TriggerOutput( String name, Entity activator )
Description:
Used to trigger outputs.
Returns: nil
In Object: Entity
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.TriggerOutput]Entity.TriggerOutput [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionThis example function will trigger the OnStartTouch output for this entity.
Used onNewerServer.png
Code
 
function ENT:StartTouch( ent )
	self:TriggerOutput( "OnStartTouch", ent )
end
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox