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
Lantern script
Mofo Offline
Member

Posts: 71
Threads: 4
Joined: Sep 2010
Reputation: 2
#10
RE: Lantern script

(10-22-2010, 03:12 PM)house Wrote: You ALMOST have a problem like me. Exept, I'm trying to make a door unlock when you PICK UP the lantern. I could never get that to work. Sad

Open your map in the level editor and select the lantern. select the entity tab on the right side of the screen and add a callback funtion named: PickLantern.

[Image: 15ygi9f.jpg]


Open the .HPS file and add the following lines:

void PickLantern(string &in asEntity, string &in asType)
{
SetSwingDoorLocked("your_door_here", false, false);
}

(If your door is a Level Door, change SetSwingDoorLocked("your_door_here", false, false); to SetLevelDoorLocked("your_door_here", false);

*EDIT*
Just noticed you had opened a thread about this. http://frictionalgames.com/forum/thread-5152.html
10-22-2010, 03:34 PM
Find


Messages In This Thread
Lantern script - by Hooumeri - 10-21-2010, 08:00 PM
RE: Lantern script - by Everlone - 10-21-2010, 08:26 PM
RE: Lantern script - by Pandemoneus - 10-21-2010, 08:33 PM
RE: Lantern script - by Hooumeri - 10-22-2010, 02:04 PM
RE: Lantern script - by Everlone - 10-21-2010, 08:48 PM
RE: Lantern script - by Pandemoneus - 10-21-2010, 09:01 PM
RE: Lantern script - by Everlone - 10-21-2010, 09:15 PM
RE: Lantern script - by house - 10-22-2010, 03:12 PM
RE: Lantern script - by ThePaSch - 10-22-2010, 03:23 PM
RE: Lantern script - by Mofo - 10-22-2010, 03:34 PM
RE: Lantern script - by Hooumeri - 10-22-2010, 03:59 PM
RE: Lantern script - by Mofo - 10-22-2010, 04:13 PM
RE: Lantern script - by Hooumeri - 10-22-2010, 04:14 PM
RE: Lantern script - by Hooumeri - 10-22-2010, 09:11 PM
RE: Lantern script - by ThePaSch - 10-22-2010, 09:42 PM
RE: Lantern script - by nofsky - 10-23-2010, 01:25 AM
RE: Lantern script - by Hooumeri - 10-23-2010, 02:45 PM
RE: Lantern script - by ThePaSch - 10-23-2010, 07:03 PM
RE: Lantern script - by Pandemoneus - 10-23-2010, 07:43 PM
RE: Lantern script - by Hooumeri - 10-23-2010, 09:09 PM



Users browsing this thread: 2 Guest(s)