Call of Duty 4: Scripting Reference - Trace::BulletTrace: Difference between revisions
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: | ||
# <hit characters> When set to true, this will trace for character hits | # <hit characters> When set to true, this will trace for character hits | ||
# <ignore entity> An entity to ignore | # <ignore entity> 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) | |||
}} | }} |