Function levelentitynum
#include <macawlevel.h>double levelentitynum(
int level,
const char *class_,
int i,
const char *field
);
Gives an entity's field as a number. Text that's a number reads as that number, true as 1 and false as 0.
Parameters
levelint- The level.
class_const char *- The class, or NULL for every entity.
iint- Which one of them, from 0.
fieldconst char *- The field's name.
Returns double
The field's value, or 0 if there's no such field (or it isn't a number).
In Entities, with levelentitycount, levelentity, levelentityhas, levelentitytext, levelentityfield.