Macaw OS C reference

Function levelstart

#include <macawlevel.h>
void levelstart(
    int level,
    double *x,
    double *y,
    double *z,
    double *angle
);

Gives where the player starts: the player start's feet, and which way it faces. A level with no start gives 0, 2, 0 and an angle of 0.

Parameters

levelint
The level.
xdouble *
The address of a double for x, or NULL.
ydouble *
The address of a double for y (where the feet are), or NULL.
zdouble *
The address of a double for z, or NULL.
angledouble *
The address of a double for which way it faces, in degrees, or NULL.

In What's in a level, with levellightcount, levellight, levelwatercount, levelwater, levelprobecount, levelprobe.