![]() |
Need some scripts - 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: Need some scripts (/thread-9552.html) |
Need some scripts - danthaman15 - 08-02-2011 I need some scripts for my new story: The Unforgiven Here's what I need so far: 1. A script that has a player looking at the ceiling, reacting to thunder outside (not an insanity event) and having a small message appear 2. The player starts in front of a fireplace, and the story fades in to start, so a script that prevents the player from moving would be good 3. A script that has the player suddenly wake up from a black screen and look around startled (they were having a dream) Thats all I need for now. If anyone wants to help, let me know, and I'll go into more detail. I'm trying to learn scripting a bit along the way. Thanks again! RE: Need some scripts - Your Computer - 08-02-2011 (08-02-2011, 05:58 AM)danthaman15 Wrote: 1. A script that has a player looking at the ceiling, reacting to thunder outside (not an insanity event) and having a small message appearI will reference the function names that are basically required for you for each bit (not necessarily in the order they're in). 1. StartPlayerLookAt(); StopPlayerLookAt(); SetMessage(); StartEffectFlash(); PlaySoundAtEntity() for the lightning; AddTimer() for longer stares and (or) stopping (and starting) the lightning effects. 2. FadeOut(); FadeIn(); SetPlayerActive(); AddTimer() to enable player after a short period of time has passed. 3. StartPlayerLookAt(); StopPlayerLookAt(); FadeOut(); FadeIn(); MovePlayerHeadPos(); FadePlayerRollTo(); PlaySoundAtEntity() for the possibly heavy breathing; AddTimer() for increasing the time between each action. The definitions and descriptions of these functions can be found here. More functions can be found there in case i missed some. |