![]() |
Scripts Recollection - 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 Articles (https://www.frictionalgames.com/forum/forum-40.html) +---- Thread: Scripts Recollection (/thread-5117.html) |
RE: Scripts Recollection - Pandemoneus - 03-05-2011 (03-04-2011, 11:01 PM)TheGreatCthulhu Wrote: When is OnStart() called? When the level is first loaded? Just once? It is as you guessed. And btw, your explanation was fine, but I guess people, that can't see such a simple error (and there IS a scripting tutorial on the wiki) or do not even try to look for it and copy & paste their scripts directly to the forum so someone else takes a look, care about that. ![]() I have seen a lot of people here in the forums asking other people to make scripts for them, which makes me quite sad. ![]() Oh yeah, and my bad about forgetting that void. RE: Scripts Recollection - Raymond - 03-05-2011 What do i need to write in the "teleport_name" in the "Teleport player when he touches an area"? I put PlayerStartArea_2 but i got an error. RE: Scripts Recollection - Pandemoneus - 03-05-2011 You need to put it into quotation marks. E.g.: "PlayerStartArea_2" RE: Scripts Recollection - Raymond - 03-06-2011 (03-05-2011, 05:38 PM)Pandemoneus Wrote: You need to put it into quotation marks. Works, thanks ![]() RE: Scripts Recollection - CrushedRaiD - 03-07-2011 I need help with a script ![]() When player touches the door, he will hear growling, 1 second after that he will turn around quickly and make the scared breath sound ![]() Then the monster will spawn behind the corner.. I'm not that good at scripting so.. If someone has the time to help me i would be pleased ![]() RE: Scripts Recollection - wisecow - 04-17-2011 Hi, I'm new to the forums and not very good at scripting. I hope someone can help me out with something here, i made my map then i wanted some scripts so i added the "key-on-door" script and it worked fine. Then i added the "monster-activate" script and when i try to load my map it says: "FATAL ERROR: Could not load script file 'custom_stories/mymapname/maps/ch01/mymapname.hps'! main (14, 1) : ERR : Unexpected token'{'" Code: void OnStart() ![]() ![]() RE: Scripts Recollection - wisecow - 04-18-2011 edit: haha, silly me ![]() edit again: ops i accidently did a new reply srry ![]() RE: Scripts Recollection - nkmol - 04-18-2011 i'm trying to use the moveable_book, but it seems it doesn't work as a normal lever :S i used this script : Code: void OnStart() even the DebugMessage doesn't work. I don't get any error, think it has to do whith the OnStart line though. But i can't find a other script that works. And yes, i putted the callback in the level editor ![]() RE: Scripts Recollection - Jahffax - 04-23-2011 Hey! I would want a script for screen effects. And for the situation where happens like this: I go to area I have marked and suddenly a locked door is unlocked.. (Monster in a closet will be activated and comes out, It's locked because I don't want player go open closet and see there no one and then monster just appears there.. unrealistic you know) ![]() Those would be nice. I have tried to script those but I can't get them right.. :/ I specially want a screen effect which turns screen dark red! RE: Scripts Recollection - Kyle - 04-23-2011 (04-23-2011, 07:05 AM)Jahffax Wrote: Hey! You don't need to lock the closet, just use this: SetEntityInteractionDisabled(string& asName, bool abDisabled); Example: SetEntityInteractionDisabled("Closet", true); That's all I can help at the moment. |