> For the complete documentation index, see [llms.txt](https://wiki.redmodding.org/cyberpunk-2077-modding/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.redmodding.org/cyberpunk-2077-modding/for-mod-creators-theory/3d-modelling/custom-props/amm-light-components.md).

# AMM: Light Components

## Summary

**Published**: Feb 09 2024 by [mana vortex](mailto:undefined)\
**Last documented edit**: Feb 11 2024 by [mana vortex](mailto:undefined)

This page will show you how to add a light component to AMM props.

### Wait, this is not what I want!

For a quick overview on lights and their properties, check [Cheat Sheet: Lights](/cyberpunk-2077-modding/for-mod-creators-theory/references-lists-and-overviews/cheat-sheet-lights.md) (currently WIP)

For an explanation about light, check [Lights explained](/cyberpunk-2077-modding/for-mod-creators-theory/files-and-what-they-do/lights-explained.md) (currently WIP)

## Adding lights to AMM props

{% hint style="info" %}
You can learn more about effect components (e.g. how to remove or create effect spawns) on the [Effect components](/cyberpunk-2077-modding/for-mod-creators-theory/files-and-what-they-do/components/documented-components/effect-components.md) page.
{% endhint %}

This is as easy as finding the right component, adding it to your prop (either in the [root entity](https://github.com/CDPR-Modding-Documentation/Cyberpunk-Modding-Docs/blob/main/for-mod-creators-theory/files-and-what-they-do/file-formats/entity-.ent-files#root-entity) or in each appearance in the [.app file](https://github.com/CDPR-Modding-Documentation/Cyberpunk-Modding-Docs/blob/main/for-mod-creators-theory/files-and-what-they-do/file-formats/appearance-.app-files#appearances)) and naming it **Light:**

<figure><img src="/files/IZZlBPQaeRJefOepZhYa" alt=""><figcaption><p>For a list of props to steal those components from, check <a data-mention href="/pages/GcH3GkWAlmaM99B5SZtc">/pages/GcH3GkWAlmaM99B5SZtc</a></p></figcaption></figure>

This enables the AMM light panel in the target tools.

{% hint style="warning" %}
Not all light components actually support colour and intensity changes. Candlelight, for example, does not.
{% endhint %}

## Placing lights and effects

Your lights will be anywhere relative to your prop. How can you position them relative to the actual object?

1. Add an Empty in Blender (Viewport, Hotkey: `Shift+A` -> Empty -> Plain Axes)
2. Move the empty to the position where you want your light to be
3. Switch to the Object tab and see its location transform:

<figure><img src="/files/F8TqSPXEElgbEOnF6ndY" alt=""><figcaption></figcaption></figure>

Now that you have the **relative position**, switch back to Wolvenkit: we need to add it to our `entSlotComponent`.

1. Open the `slots` array and select your first `entSlot`
2. Find the `relativePosition` property in the box on the right
3. Copy the values from the "Transform" field in Blender (Screenshot above) to the corresponding fields under `relativePosition` (screenshot below)

<figure><img src="/files/8aZztoCeq5Bu7AU8MAgV" alt=""><figcaption><p>WolvenKit should cut off the <code>m</code> automatically.</p></figcaption></figure>

4. Save and see your effect changing positions!

{% hint style="info" %}
If your light doesn't seem to be in the right spot, try multiplying the value for z with -1
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://wiki.redmodding.org/cyberpunk-2077-modding/for-mod-creators-theory/3d-modelling/custom-props/amm-light-components.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
