# getLightSourceRadius (Cliente)

> Lee el tamaño de la bombilla de una luz spot.

- **Plataforma**: MY Multiplayer (MYMP)
- **Tipo**: Función Lua
- **Lado**: Cliente
- **Categoría**: Luces
- **URL**: https://wiki.mymp.gg/es/getLightSourceRadius

## Sintaxis

```lua
float|false getLightSourceRadius(light light)
```

## Parámetros

| Nombre | Tipo | Descripción |
| --- | --- | --- |
| `light` | `light` | La luz. |

## Retorno

El radio de la bombilla en metros, o `false` con un argumento incorrecto.

## Ejemplo

```lua
local light = createSpotLight(0, 0, 10, 0, 0, -1)
outputDebugString(getLightSourceRadius(light)) -- 0.1
```

### Atención

Solo para luces spot. En una luz point o rect, registra un aviso que dice su tipo y devuelve `false`.

## Ver también

- [setLightSourceRadius (Cliente)](https://wiki.mymp.gg/es/setLightSourceRadius.md): Cambia el tamaño de la bombilla de una luz spot. Una bombilla mayor suaviza los brillos y las sombras.
- [getLightCone (Cliente)](https://wiki.mymp.gg/es/getLightCone.md): Lee la apertura y la dureza del borde del cono de una luz spot.
