![]() |
[SCRIPT] Parentheses issue - 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 - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: [SCRIPT] Parentheses issue (/thread-12022.html) Pages:
1
2
|
RE: Parentheses issue - DRedshot - 12-23-2011 "DoorCloseBang" is fine for the function name, is the door also called DoorCloseBang? I get a sneaky suspicion that PlaySoundAtEntity("", "24_Bang.snt", "DoorCloseBang", 0, false); should say PlaySoundAtEntity("", "24_Bang.snt", "Bedroom_Key_Door", 0, false); Remember that the third parameter is the name of the entity which you want the sound to come from - (in this case that would be the door name) RE: Parentheses issue - Grimm101 - 12-23-2011 I don't understand how that worked, but it did! I'm going to look into this more, thanks a lot mate your a scholar! EDIT: Ok so sorry for being a pain again. I've got this door to make sounds that I want but i also wanted my character to face the door and be frightened. I have managed to do that but i dont know how to make the character's aspectMulto and FOVMulto go back to normal. If you could tell me that would be great thanks. Code below again PHP Code: //////////////////////////////// RE: Parentheses issue - Your Computer - 12-23-2011 (12-23-2011, 01:30 AM)Grimm101 Wrote: EDIT: Ok so sorry for being a pain again. I've got this door to make sounds that I want but i also wanted my character to face the door and be frightened. I have managed to do that but i dont know how to make the character's aspectMulto and FOVMulto go back to normal. If you could tell me that would be great thanks. http://wiki.frictionalgames.com/hpl2/amnesia/script_functions The description for each of those functions provide the default values. Use the defaults to bring things back to normal. |