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


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do I - disable all hints/turn on lights with a switch?
Kreekakon Offline
Pick a god and pray!

Posts: 3,063
Threads: 70
Joined: Mar 2012
Reputation: 124
#14
RE: How do I - disable all hints/turn on lights with a switch?

No it's not normal, at least not for the effect you're intending.

Here's the problem:

SetEntityPlayerInteractCallback("lever_nice01_1", "LightsFunction", false);


You're using SetEntityPlayerInteractCallback which means it will trigger instantly whenever the player interacts with it, for example simply touching it.

Use this instead:

SetEntityConnectionStateChangeCallback("lever_nice01_1", "LightsFunction");

Take a look here for a tutorial on a similar matter: http://wiki.frictionalgames.com/hpl2/tut...cretshelfs

[Image: Tv0YgQb.gif]
Image by BandyGrass
(This post was last modified: 08-05-2013, 10:00 AM by Kreekakon.)
08-05-2013, 09:55 AM
Find


Messages In This Thread
RE: How do I - disable all hints/turn on lights with a switch? - by Kreekakon - 08-05-2013, 09:55 AM



Users browsing this thread: 1 Guest(s)