Neartag

From EDukeWiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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.