Neartag

From EDukeWiki
Revision as of 20:12, 7 January 2011 by Hendricks266 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

neartag <x> <y> <z> <sect> <ang> <nearTagSector> <nearTagWall> <nearTagSprite> <nearTagHitDist> <nearTagRange> <tagSearch>

<x> <y> <z> <sect> <ang> - Starting position & angle.
<nearTagSector> <nearTagWall> <nearTagSprite> - Returns nearest tags if they're found.
<nearTagHitDist> - Returns actual distance to object.
<nearTagRange> - Choose maximum distance to scan.
<tagSearch> 1-lotag only, 2-hitag only, 3-both lotag & hitag

neartag finds the nearest sector, wall, and sprite which has its hitag and/or lotag set to a value.