Function leveladdentity
#include <macawlevel.h>int leveladdentity(
int level,
const char *class_,
double x,
double y,
double z
);
Adds an entity of a class at a place. Give it fields with the calls below.
Parameters
levelint- The level.
class_const char *- Its class, like
"pickup"or"light". xdouble- X of where it is.
ydouble- Y of where it is.
zdouble- Z of where it is.
Returns int
The entity's number, in the level's order (as levelentity counts with a NULL class), or -1 if the class was empty or a place wasn't a proper number.
In Building from code: entities and settings, with levelremoveentity, levelmoveentity, levelentitysetnum, levelentitysettext, levelentitysetbool, levelsetting, levelsettingtext, levelsetsetting, levelsetsettingtext.