# MB_SetLifeTime

## Syntax

  `#include <nitro/mb.h>`
  `void MB_SetLifeTime(u16 tableNumber, u16 camLifeTime, u16 frameLifeTime, u16 mpLifeTime);`

## Arguments

tableNumber | CAM table number that will have its lifetime set. This is set to `0xFFFF` ("all") by default. The meaning of this argument is the same as in the `WM_SetLifeTime` function.
camLifeTime | Lifetime of the CAM table. This is set to 40 (4 seconds) by default. The meaning of this argument is the same as in the `WM_SetLifeTime` function.
frameLifeTime | Lifetime while in infrastructure mode. This is set to 5 by default. The meaning of this argument is the same as in the `WM_SetLifeTime` function.
mpLifeTime | MP communications lifetime. This is set to 40 (4 seconds) by default. The meaning of this argument is the same as in the `WM_SetLifeTime` function.

## Return Values

None.

## Description

Specifies the various lifetimes for the WM library that is used internally in the MB library. The internal values specified by this function are used unchanged as arguments to the `WM_SetLifeTime` function. In a normal game application, the default setting is appropriate, so there is no need to call this function explicitly.
This function can be called only after the `MB_Init` function and before the `MB_StartParent` function.

## See Also

`MB_Init
MB_StartParent
WM_SetLifeTime`

## Revision History

2006/07/19 Changed default values.
2005/04/11 Initial version.

CONFIDENTIAL