Lantern script - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods (https://www.frictionalgames.com/forum/forum-35.html) +--- Thread: Lantern script (/thread-5143.html) Pages:
1
2
|
Lantern script - Hooumeri - 10-21-2010 Hey. I'm trying to make a script, which makes some grunts activated when the lantern is activated. When ever the lantern is not activated, the grunts are not active. I tried a script (if HasItem....) but I couldnt get it to work. Could someone please help in creating it? I'm calling the area which triggers this action "LightsOutArea_01" So when ever inside the area, this happens The grunts are from servant_brute_1 to servant_brute_13. I'm calling the area which brings everything to normal "LightsBackArea_01" RE: Lantern script - Everlone - 10-21-2010 Why you write a script? You can make them very easy. open the model editor then the path: Models/hand object/lantern and open the lantern model. there you add the sound and choose the configuration you will. save it and its ready for more help, ask me RE: Lantern script - Pandemoneus - 10-21-2010 Code: OnStart() Something like that. RE: Lantern script - Everlone - 10-21-2010 change my way i change the sound in one minute. my lantern whisper it was a test ^^ RE: Lantern script - Pandemoneus - 10-21-2010 Everlone, I don't think you get what he wants to do. He wants monsters active when he holds his latern and inactive when not. He doesn't want to edit any sounds. RE: Lantern script - Everlone - 10-21-2010 oh okay ^^ sorry RE: Lantern script - Hooumeri - 10-22-2010 (10-21-2010, 08:33 PM)Pandemoneus Wrote: Couldnt get this to work. If someone could possibly try it themselves and post a solution? plz RE: Lantern script - house - 10-22-2010 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. RE: Lantern script - ThePaSch - 10-22-2010 (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. *snip* Sorry, didn't see your thread. RE: Lantern script - Mofo - 10-22-2010 (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. 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. 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 |