| Main Page | Recent changes | Edit this page | Page history Printable version | Disclaimers | Privacy policy | Not logged in Log in | Help

# Findnearactor3d

From EDukeWiki

Categories: EDuke32 specific commands | Gamevar manipulation

findnearactor3d <actor> <distance> <gamevar>

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, y, and z planes; for finding actors on the x and y planes only, use findnearactor instead.

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.

Retrieved from "http://sc8-pr-shell1.sourceforge.net../../../f/i/n/Findnearactor3d.html"

This page has been accessed 188 times. This page was last modified 07:00, 25 September 2005 by Richard Gobeille. Based on work by EDukeWiki user(s) Usurper. Content is available under SourceForge.

Main Page
Recent changes
Random page
EDuke32.com

Edit this page
Discuss this page
Page history
What links here
Related changes

Special pages
Bug reports