Message on locked doors[SOLVED] - 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: Message on locked doors[SOLVED] (/thread-8043.html) |
Message on locked doors[SOLVED] - Greven - 05-16-2011 Ok so i was just wondering how to script in both the .lang file and in the .hps file to get a text saying something like "this door is locked". I have tried and tried but i cant get it to work... help! RE: Message on locked doors - Acies - 05-16-2011 This is a ctrl-c, ctrl-v from my map script: Spoiler below!
When using a key on it however, that variable is set to 1. Thus interaction after unlocking will no longer display the message. Note that this is for a leveldoor and not a swingdoor, so if you are using a swingdoor replace the "SetLevelDoorLocked("level_wood_2", false);" with the swingdoor command. RE: Message on locked doors - Greven - 05-16-2011 uhm im not to familiar with the whole "if" things, can you simplify the whole procedure? RE: Message on locked doors - Acies - 05-16-2011 Uhm, I could explain it better - or copy you OnStart() parts too. Right now I can't think of another way. The "if" part says: Spoiler below!
RE: Message on locked doors - Russ Money - 05-16-2011 The longer way: Code: Void OnStart() RE: Message on locked doors - dragonlordsd - 05-17-2011 how is the message scripted in the english.lang file? |