# Creating custom lights/sirens

## Warning:

If you have never made any props, don't know how to stream custom props, or how to use Blender.&#x20;

Please learn that first if you want to create a custom light/siren. We will not be able to assist you with basic Blender/Sollumz questions. This guide covers everything necessary to create a custom light for our script. It will not teach you how to use Blender or Sollumz

### What's needed?

To create a new animated light prop for our kq\_emergency resource. You will need [Blender ](https://www.blender.org/)with the [Sollumz ](https://github.com/Sollumz/Sollumz)plugin. If you have not used Blender, or Sollumz before, I highly encourage you to try learning those individually first, as this is not a simple process if you don't know those environments.

### How do the props work?

The sirens/lights are simple props, with emissive materials and (in some cases) lights. The props default state is a disabled state, so no visible emissive materials.&#x20;

The prop will have one animation, which will be its "ON" state.&#x20;

### We highly recommend starting using our example project

Download the example project and open it using Blender. Make sure to have the newest version of Sollumz installed

{% file src="<https://3139437085-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McQL31aDhGIYXJmjzMO%2Fuploads%2FAD3b6VxJBXSO1ZQH3mKT%2Fkq_emergency_example_light.blend?alt=media&token=30a2085c-d9a6-4ee2-9192-d01729d6f48c>" %}

### Editing the model

Modify the model of the prop. That's the `kq_police_led_model` mesh element. To modify the emissive elements you'll need to modify the `kq_police_led_emiss_blue` or `kq_police_led_emiss_red` mesh elements.&#x20;

Check the rest position of the bones. In Object mode select the object, and in the pose tab press on the "Rest Position"

<figure><img src="https://3139437085-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McQL31aDhGIYXJmjzMO%2Fuploads%2FjyiHgjUVc0ptv6A5mXO6%2Fimage.png?alt=media&#x26;token=6a72fd36-d43c-49d7-870d-ac6f0b3865ec" alt=""><figcaption></figcaption></figure>

To check the animation select the "Pose Position" within the same tab

<div><figure><img src="https://3139437085-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McQL31aDhGIYXJmjzMO%2Fuploads%2FXBth8irQfPH2O3IwWvpg%2Fimage.png?alt=media&#x26;token=dc2b626c-f288-4b29-89ab-1e7e905eb2b8" alt=""><figcaption></figcaption></figure> <figure><img src="https://3139437085-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McQL31aDhGIYXJmjzMO%2Fuploads%2FXdtQlEZYhpgqSOMpX1y8%2Fimage.png?alt=media&#x26;token=811eaa27-8f76-4116-b357-3ca7641d08ee" alt=""><figcaption></figcaption></figure></div>

Open the timeline and drag between 0-30 frames and 30-60 frames to see the animation change. Obviously you can fully edit the animation. If you don't know how Blender/Sollumz animations work, I highly recommend checking out this tutorial by ook\_3d (<https://www.youtube.com/watch?v=dfO1eQf8WE0>)

### Saving the model

Make sure to rename the animation and the prop and create its archetype definition.&#x20;

Export the prop and the animation, and stream both as usual
