The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Answered]Lights
Catalyst Offline
Member

Posts: 213
Threads: 32
Joined: Aug 2014
Reputation: 3
#1
[Answered]Lights

Hello guys,

I have a little problem with lights. These lights are thunderlights and I had set a option to light at flicker and to play sound of thunder at him. So I made at Onleave option to set spot light visible - false, but light and sounds still remains when I return to this level where lightning are active from previous where atmosphere is after rain.

There is the script that I made to set these lights inactive:
void OnLeave()
{
SetLightVisible("SpotLight_1", false);
SetLightVisible("SpotLight_2", false);
SetLightVisible("SpotLight_3", false);
SetLightVisible("SpotLight_4", false);
SetLightVisible("SpotLight_5", false);
SetLightVisible("SpotLight_6", false);
SetLightVisible("SpotLight_7", false);
SetLightVisible("SpotLight_8", false);
SetLightVisible("SpotLight_9", false);
SetLightVisible("SpotLight_10", false);
SetLightVisible("SpotLight_11", false);
SetLightVisible("BoxLight_1", true);
SetEntityActive("AreaLockDoor", true);
}

Looks that lights are turned off, but sounds on flicker persists.Maybe there exist another script command for a SpotLight Type or for flicker?

Thank for your wiewing Smile

Egypt CS
[Image: 27003.png]
(This post was last modified: 12-22-2014, 07:08 PM by Catalyst.)
12-21-2014, 07:23 PM
Find


Messages In This Thread
[Answered]Lights - by Catalyst - 12-21-2014, 07:23 PM
RE: Lights - by Newsman Waterpaper - 12-21-2014, 07:30 PM
RE: Lights - by Catalyst - 12-21-2014, 07:48 PM



Users browsing this thread: 1 Guest(s)