![]() |
Swing Door Locked Text? - 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) +---- Forum: Technical Support (https://www.frictionalgames.com/forum/forum-37.html) +---- Thread: Swing Door Locked Text? (/thread-26286.html) Pages:
1
2
|
RE: Swing Door Locked Text? - Neelke - 09-23-2014 Show me the whole script. Probably something has been written wrong. RE: Swing Door Locked Text? - Amnesiaplayer - 09-24-2014 Script PHP Code: void OnStart() ![]() RE: Swing Door Locked Text? - Romulator - 09-24-2014 You don't have a callback syntax for the code I gave you, which evidently means you copied and pasted it without realising so. Here. Copy and paste this, overwriting your old if. PHP Code: void CellarDoor2(string &in asEntity) RE: Swing Door Locked Text? - Mudbill - 09-24-2014 Aaaand ninja yet again. I swear you weren't there when I opened it o.o That last if-statement is not within any code block. That's why you're crashing right now. You haven't made your callback yet. You must place it where you have your current, invalid if-statement. Since you put CellarDoor2 in the level editor on the door in the PlayerInteractCallback, you can do PHP Code: void CellarDoor2(string &in asEntity) Try this instead of what you have down there. RE: Swing Door Locked Text? - Amnesiaplayer - 09-24-2014 Thanks!!! it worked ![]() |