# getLightCastShadow (Cliente)

> Dice si una luz proyecta sombras.

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

## Sintaxis

```lua
bool getLightCastShadow(light light)
```

## Parámetros

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

## Retorno

`true` si la luz proyecta sombras. `false` si no, o con un argumento incorrecto.

## Ejemplo

```lua
local light = createSpotLight(0, 0, 10, 0, 0, -1)
outputDebugString(tostring(getLightCastShadow(light))) -- false
```

## Ver también

- [setLightCastShadow (Cliente)](https://wiki.mymp.gg/es/setLightCastShadow.md): Activa o desactiva las sombras de una luz.
- [isLightEnabled (Cliente)](https://wiki.mymp.gg/es/isLightEnabled.md): Dice si una luz está encendida.
