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
Disabling "lights" activating area's...
Amnesiaplayer Offline
Senior Member

Posts: 539
Threads: 105
Joined: Jun 2014
Reputation: 0
#1
Disabling "lights" activating area's...

i searched in the engine scripts and there is nothing i can find.
but i want, that if i pick a lantern, the "light" will disappear (i have a big lightbox, and i want that the whole box will disappear, so "de activating" i tried setentityactive false but it didn't worked, and i tried this one to SetLightVisible(string& asLightName, bool abVisible);
but it doesn't work to... is this even possible Sad and i want a Area that was inactive, will become active after picking the lantern... i think that works with the Setentityactive thing Tongue but the light Sad my script about this:

SetEntityPlayerInteractCallback("Lantern", "BadThings", true);

void BadThings(string &in asItem, string &in asEntity)
{
SetLightVisible("Lamp", false);
}

Sad thanks if you can help me!
02-23-2015, 02:17 PM
Find


Messages In This Thread
Disabling "lights" activating area's... - by Amnesiaplayer - 02-23-2015, 02:17 PM



Users browsing this thread: 1 Guest(s)