https://wiki.eduke32.com/w/api.php?action=feedcontributions&user=85.137.208.231&feedformat=atomEDukeWiki - User contributions [en]2024-03-29T09:56:19ZUser contributionsMediaWiki 1.42.0-alphahttps://wiki.eduke32.com/w/index.php?title=Findnearsprite&diff=7750Findnearsprite2009-03-12T12:35:18Z<p>85.137.208.231: </p>
<hr />
<div>findnearsprite <[[tile number]]> <distance> <[[gamevar]]><br />
<br />
Gets the actor ID of the closest sprite of with a picnum of <[[tile number]]> within <distance> into a <[[gamevar]]>. If no sprite within range is found, the [[gamevar]] is set to -1. The input for <[[tile number]]> may be its tile number (example: 2000) or its defined name (example: PIGCOP). The <distance> will be determined on the x and y plane only; for finding sprites on the x, y, and z axes use [[findnearsprite3d]] instead.<br />
<br />
Note that findnearsprite and friends work just like findnearactor and friends, except that the sprite commands will find sprites of any statnum, including sleeping actors and sprites that are not actors.<br />
<br />
Also see [[findnearactor]].<br />
[[Category:EDuke commands]]<br />
[[Category:Sprite manipulation]]</div>85.137.208.231https://wiki.eduke32.com/w/index.php?title=Findnearactor&diff=7749Findnearactor2009-03-12T12:35:04Z<p>85.137.208.231: </p>
<hr />
<div>findnearactor <[[actor]]> <distance> <[[gamevar]]><br />
<br />
Gets the actor ID of the closest <[[actor]]> within <distance> into a <[[gamevar]]>. If no actor within range is found, the [[gamevar]] is set to -1. The input for <[[actor]]> may be its tile number (example: 2000) or its defined name (example: PIGCOP). The <distance> will be determined on the x and y plane only; for finding actors on the x, y, and z axes use [[findnearactor3d]] instead.<br />
<br />
By getting the actor ID of a nearby actor, the current actor can use [[getactor]]/[[setactor]] to edit the properties of the target actor or [[getangle]] to face the target actor, among other potential uses.<br />
<br />
Also note that if the <[[actor]]> being located within the <distance> is asleep this will return a value of -1<br />
<br />
Also see [[findnearsprite]].<br />
[[Category:EDuke commands]]<br />
[[Category:Sprite manipulation]]</div>85.137.208.231https://wiki.eduke32.com/w/index.php?title=Prevspritesect&diff=7672Prevspritesect2009-02-06T18:34:00Z<p>85.137.208.231: </p>
<hr />
<div>'''nextspritesect <PrevSpriteID> <CurrentSpriteID>'''<br />
<br />
Finds the previous sprite that in the same sector. See [[headspritesect?]] for more information.<br />
<br />
[[Category:EDuke32 specific commands]]<br />
[[Category:Sprite manipulation]]</div>85.137.208.231https://wiki.eduke32.com/w/index.php?title=Nextspritesect&diff=7671Nextspritesect2009-02-06T18:33:30Z<p>85.137.208.231: </p>
<hr />
<div>'''nextspritesect <NextSpriteID> <CurrentSpriteID>'''<br />
<br />
Finds the next sprite that in the same sector. See [[headspritesect?]] for more information.<br />
<br />
[[Category:EDuke32 specific commands]]<br />
[[Category:Sprite manipulation]]</div>85.137.208.231