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...
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#2
RE: Disabling "lights" activating area's...

Instead of SetEntityPlayerInteractCallback, try

PHP Code: (Select All)
SetEntityCallbackFunc("Lantern""BadThings");  //This will go in OnStart()

void BadThings(string &in asEntitystring &in type)
{
SetLightVisible("Lamp"false);  //The name of your lamp goes here. 
SetEntityActive("ScriptArea_1"true);   //The script area you want to activate


Discord: Romulator#0001
[Image: 3f6f01a904.png]
(This post was last modified: 02-23-2015, 07:34 PM by Romulator.)
02-23-2015, 02:31 PM
Find


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



Users browsing this thread: 1 Guest(s)