Light Control

Action_Name

Description

Add Flashlight

This Action adds a Flashlight Component to the Camera or Player using a Spotlight. If it is added to the Player, the body part can be chosen. The color, intensity, and range can be set, and a cookie (mask) can be used for effects. 3 Sample cookies are included.

Toggle Flashlight

The Flashlight can be toggled on and off by adding this Action to a Trigger of your choice.

Change Light Settings

The Action changes Intensity, Color, and Range of a spot light or point light. Values can be obtained from variables.

Change Light Color

The Action changes the Color of a spotlight or point light. Values can be obtained from variables.

Change Light Halo

WIth is Action we can Enable and Disable a Halo Component on a Light Object. Hwoever, the light must have the Haloe Component already added. Color and intensity are not able to be changed at runtime.

Change Light Intensity

The Action changes the intensity of a spotlight or point light. Values can be obtained from variables.

Change Light Range

The Action changes the range of a spotlight or point light. Values can be obtained from variables.

Change Spotlight Angle

The Action changes the angle of where a spotlight is pointing. Values can be obtained from variables.

Spotlight Look At Object

With this Action, we can Rotate a Spotlight to look at or point to a Game Object such as the Player or any other object. The rotation will be immediate and an offset can also be set.

Spotlight Follow Object

We can Rotate a Spotlight to look at or point to a Game Object such as the Player or any other object and continue over time. The rotation will be immediate but if the object is moving, the light will follow the Object, and an offset can also be set. Update time can be set from a slider or a variable.

Spotlight Follow Object Stop

This Action Stops the Spotlight from following a Game Object and will leave it in the last rotated position.

Flicker Light Intensity

Flickering a Light on and off at random times will provide interesting effects. With this Action we have two settings. Minimum and maximum intensity, and Flicker. The Min/max flicker sets the time that the light will be on (max) and the time it will be off (min). The Action will choose a random time between these values.

Change Collider Size

Each Trigger has a collider sphere and the size of this can be changed using this Action. This allows for the new size to be set, and the length of time to grow or shrink the collider. When used inconjunction with a restart Action, the collider can grow and shrink with a spotlight (see Example 2)

Last updated