util.TraceEntity

From GMod Wiki

Revision as of 19:15, 29 October 2009 by Crazy Quebecer (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
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: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Util.TraceEntity]Util.TraceEntity [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionDo a trace of entity 27 from 0,0,0 to 0,0,20.
Used onNewerShared.png
Code
trace={}
trace.start=Vector(0,0,0)
trace.endpos=Vector(0,0,20)
 
traceRes=util.TraceEntity( trace, Entity( 27 ) )
OutputN/A


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox