Entity.TriggerOutput
From GMod Wiki
Function | |
Syntax | Entity:TriggerOutput( String name, Entity activator ) |
Description: | |
Used to trigger outputs. | |
Returns: | nil |
In Object: | Entity |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity.TriggerOutput]Entity.TriggerOutput [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | This example function will trigger the OnStartTouch output for this entity. |
---|---|
Used on | |
Code | function ENT:StartTouch( ent ) self:TriggerOutput( "OnStartTouch", ent ) end |
Output | N/A |
Additional Notes
- Outputs must be added manually from ENT.KeyValue by calling Entity.StoreOutput.