Neartag

From EDukeWiki
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.