Call of Duty 4: Scripting Reference - Trace::BulletTrace: Difference between revisions

From COD Modding & Mapping Wiki
Jump to navigation Jump to search
(New page: {{Function |Version=4 |Name=BulletTrace( <start>, <end>, <hit characters>, <ignore entity> ) |Module=Trace |Available |Summary=Allows script to do a point trace wit...)
 
mNo edit summary
 
Line 12: Line 12:
# &lt;hit characters&gt; When set to true, this will trace for character hits
# &lt;hit characters&gt; When set to true, this will trace for character hits
# &lt;ignore entity&gt; An entity to ignore
# &lt;ignore entity&gt; An entity to ignore
|Notes=*trace["position"] is the hit position
*trace["normal"] is the normal vector of the hit surface
*trace["entity"] hit entity if there was one in the way
*trace["surfacetype"] holds the hit surface type e.g. wood or carpet
*trace["fraction"] tells the relative amount of travelled distance from start to end <br>(0 means it hit at starting position, 1 it either hit at end position or failed, 0.5 it travelled the half distance when it hit)
}}
}}

Latest revision as of 05:30, 21 February 2012