Entity.TriggerOutput
From GMod Wiki
Revision as of 04:58, 15 October 2010 by Grea$eMonkey (Talk | contribs)
| 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.