util.TraceEntity
From GMod Wiki
| Function | |
| Syntax |
util.TraceEntity( Table :Trace , Entity ) Where is this used? |
| Description: | |
| Allows you to do a trace using the ent from one point to another. | |
| Returns: | Table :traceres |
| Part of Library: | Util |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Util.TraceEntity]Util.TraceEntity [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Do a trace of entity 27 from 0,0,0 to 0,0,20. |
|---|---|
| Used on | |
| Code | trace={} trace.start=Vector(0,0,0) trace.endpos=Vector(0,0,20) traceRes=util.TraceEntity( trace, Entity( 27 ) ) |
| Output | N/A |