Function levelentity
#include <macawlevel.h>int levelentity(
int level,
const char *class_,
int i,
double *x,
double *y,
double *z
);
Gives where an entity is.
Parameters
levelint- The level.
class_const char *- The class, or NULL for every entity.
iint- Which one of them, from 0.
xdouble *- The address of a
doublefor its x, or NULL. ydouble *- The address of a
doublefor its y, or NULL. zdouble *- The address of a
doublefor its z, or NULL.
Returns int
1 if there's an i'th one, or 0 if not.
In Entities, with levelentitycount, levelentityhas, levelentitynum, levelentitytext, levelentityfield.