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
How do I trigger lights?
Melvin Offline
Member

Posts: 245
Threads: 38
Joined: Jun 2012
Reputation: 5
#1
How do I trigger lights?

I've tried this

On the leveleditor: the SpotLight I want to use set on not active

In the script:


void Activate_Area(string &in item)
{
SetEntityActive("Suitor_Scare", true);
SetLightVisible("SpotLight_Shadow", true);
}

(This is after I pick up a key)



Note: The light is also on if I start the map, I didn't even triggered it yet.

Help would be appreciated, I won't doubt you can help cuz you guys always have helped me succefully in the past Smile

[Image: 25F7U37.png]
08-10-2012, 02:39 AM
Website Find


Messages In This Thread
How do I trigger lights? - by Melvin - 08-10-2012, 02:39 AM
RE: How do I trigger lights? - by Adny - 08-10-2012, 02:46 AM
RE: How do I trigger lights? - by Melvin - 08-10-2012, 02:58 AM



Users browsing this thread: 2 Guest(s)