Finishing it off [SOLVED] THE STORY'S OUT!!!!! - 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: Finishing it off [SOLVED] THE STORY'S OUT!!!!! (/thread-7992.html) |
Finishing it off [SOLVED] THE STORY'S OUT!!!!! - Karai16 - 05-14-2011 Hey guys! I'm almost done with my first custom story! There are only few things left to do, but I do need your help for it. My questions are: 1. Can you paste something to the ceiling (I can put it there, but once you enter the map, it immediately falls down) [SOLVED] 2. How do levers work (I need levers to activate certain events/unlock a door) [SOLVED] 3. What is the code for activating script areas (I need the areas to be activated since they need to activate their event on the player's way back) [SOLVED] 4. How does the StartPlayerLookAt work? (I need to make the player look at a monster) [SOLVED] 5. How do I make a monster ignore the player (the monster needs to follow its path, with the player only a few meters away) [SOLVED] Please help I'll be done afterwards... (well almost, I can do the final part myself... I think... >.> ) RE: Finishing it off - Kyle - 05-14-2011 1. Go to the entity's properties, and check the box that says "Static Physics". 2. http://www.frictionalgames.com/forum/thread-7608-post-67004.html? A little about levers. 3. SetEntityActive("ScriptArea_1", true); 5. SetEnemyDisableTriggers(string& asName, bool abX); RE: Finishing it off - Karai16 - 05-14-2011 (05-14-2011, 06:50 PM)Kyle Wrote: 1. Go to the entity's properties, and check the box that says "Static Physics". I almost get all of it, but I still don't get the levers RE: Finishing it off - Kyle - 05-14-2011 Here is an example map I made for how levers work. You can rip the script apart and figure out how it all works. http://www.megaupload.com/?d=IXUUH1K3 RE: Finishing it off - Acies - 05-14-2011 4. A startplayerlookat defines: a. the entity or area looked at b. the acceleration of the looking movement c. the maximum speed of the looking movement The player will continously look at the object until a StopPlayerLookat is called - which could be set off by a timer. 2. That is for a lever combo tutorial. If you only want to pull 1 lever it is quite easy. Then you simply use "Alstate" in the execution script. If this is what you are looking for I can give you example scripts GL RE: Finishing it off - Karai16 - 05-14-2011 (05-14-2011, 07:24 PM)Acies Wrote: 4. A startplayerlookat defines: Can you give me an example of a look at script including timer? and can you explain what the numbers and things in the timer do? (05-14-2011, 06:50 PM)Kyle Wrote: 1. Go to the entity's properties, and check the box that says "Static Physics". I tried using your script for the levers. I don't get an error, but it's just that the levers don't get stuck, and they don't activate the event I told them to activate... Here is the code for the second lever Code: void L2(string &in asEntity, int alState) RE: Finishing it off - Kyle - 05-14-2011 It should be: Code: OnStart() RE: Finishing it off - Karai16 - 05-14-2011 Thank you so much, the levers are working RE: Finishing it off - Roenlond - 05-14-2011 From the scripts recollection thread: Code: StartPlayerLookAt(ScriptArea, viewacceleration, maxviewvelocity, onlook); Code: void TimerDoneLookAt(string &in asTimer) RE: Finishing it off - Karai16 - 05-14-2011 (05-14-2011, 09:59 PM)Roenlond Wrote: From the scripts recollection thread:Thanks, going to try and see if it works ------ EDIT: it works! thank y'all a bunch! Maybe I can get my map done tonight! |