![]() |
|
|
Links |
• • Toggle Light - This tutorial shows how to use kismet to create a simple light switch. ( In the game play it appears as if it is very slow. Its just because the software I use to create the videos does not work efficiently with gameplay)
- Create a simple level of one PointLightToggleable (found under actor>Light>PointLight), a player start and a trigger.
- Open kismet. First select the light then right click in kismet and select New Object Using PointLightToggleable_0. This will create a light object inside of kismet. Now go back to the level to select the trigger and then in kismet again right click and select New Event using Trigger_Dynamic_0> Touch. Now to create the Toggle object right click and select New Action>Toggle>Toggle. Last create the Marcus object by right clicking and selecting New Variable>Player>Marcus. All that is left is to connect the right actions to each object as seen below. What this is doing is using the trigger to simply be a light switch. The instigator is Marcus which means that he will be the actor to trigger this even. The touched event of the trigger means that when Marcus runs over this trigger it will activate. The link between Touched and Toggle is simply; every time this trigger is touched find the lights current state and change it to off or on.
|