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
Desk gas lamp help?
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#2
RE: Desk gas lamp help?

It's possible. Click on the lamp on the LevelEditor, select Entity in the right side corner, and put whatever you call it in the PlayerInteractCallback. Don't tick the box below.

Then put this script in your HPS file.
Spoiler below!

PHP Code: (Select All)
void MyFunc(string &in asEntity)
{
SetLocalVarInt("OnState"1);
SetLampLit("LampName"truetrue);
if(
GetLocalVarInt("OnState") == 1)
{
SetLampLit("LampName"falsetrue);
}



"Veni, vidi, vici."
"I came, I saw, I conquered."
06-09-2014, 11:17 AM
Find


Messages In This Thread
Desk gas lamp help? - by Artsy - 06-09-2014, 10:38 AM
RE: Desk gas lamp help? - by PutraenusAlivius - 06-09-2014, 11:17 AM
RE: Desk gas lamp help? - by Straxedix - 06-09-2014, 11:48 AM
RE: Desk gas lamp help? - by Mudbill - 06-09-2014, 03:24 PM
RE: Desk gas lamp help? - by DnALANGE - 06-09-2014, 06:52 PM
RE: Desk gas lamp help? - by Straxedix - 06-09-2014, 09:28 PM
RE: Desk gas lamp help? - by Artsy - 06-09-2014, 10:29 PM
RE: Desk gas lamp help? - by DnALANGE - 06-10-2014, 11:47 AM
RE: Desk gas lamp help? - by Artsy - 06-10-2014, 02:15 PM
RE: Desk gas lamp help? - by Straxedix - 06-11-2014, 06:52 AM
RE: Desk gas lamp help? - by koriroxx - 07-01-2014, 01:46 PM
RE: Desk gas lamp help? - by Artsy - 07-01-2014, 01:55 PM
RE: Desk gas lamp help? - by DnALANGE - 06-11-2014, 11:12 AM
RE: Desk gas lamp help? - by Straxedix - 06-11-2014, 08:19 PM
RE: Desk gas lamp help? - by DnALANGE - 06-11-2014, 08:31 PM
RE: Desk gas lamp help? - by Straxedix - 06-11-2014, 08:39 PM
RE: Desk gas lamp help? - by Artsy - 06-11-2014, 09:49 PM
RE: Desk gas lamp help? - by DnALANGE - 06-11-2014, 11:27 PM
RE: Desk gas lamp help? - by Artsy - 06-11-2014, 11:39 PM
RE: Desk gas lamp help? - by DnALANGE - 06-11-2014, 11:41 PM
RE: Desk gas lamp help? - by Straxedix - 06-12-2014, 08:28 PM
RE: Desk gas lamp help? - by Artsy - 06-12-2014, 09:58 PM
RE: Desk gas lamp help? - by PutraenusAlivius - 06-13-2014, 09:25 AM
RE: Desk gas lamp help? - by Artsy - 06-13-2014, 11:56 AM
RE: Desk gas lamp help? - by Mudbill - 07-01-2014, 05:41 PM
RE: Desk gas lamp help? - by KiraImmortal - 07-02-2014, 11:49 AM
RE: Desk gas lamp help? - by DnALANGE - 07-02-2014, 04:31 PM



Users browsing this thread: 1 Guest(s)