Macaw OS C reference

Function levelsetting

#include <macawlevel.h>
double levelsetting(int level, const char *name);

Gives one of a level's number settings: "ambient" (the light everywhere), "bounce" (how much light bounces), "luxel" (the size of a patch of baked light) or "skylight" (how strong the sky's light is).

Parameters

levelint
The level.
nameconst char *
The setting's name.

Returns double

The setting's value, or 0 if the level doesn't have it.

In Building from code: entities and settings, with leveladdentity, levelremoveentity, levelmoveentity, levelentitysetnum, levelentitysettext, levelentitysetbool, levelsettingtext, levelsetsetting, levelsetsettingtext.