Frictional Games Forum (read-only)
Waking up from Bed Script. - 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: Waking up from Bed Script. (/thread-8839.html)



Waking up from Bed Script. - Angerpull - 06-27-2011

Hello I was wondering if there's a possible way for my level to start with the player waking up from a nightmare. Like he wakes up, gasps and has a blurry effect and such.

Is it possible to do this?

Thanks in advance!

-Angerpull Angel


RE: Waking up from Bed Script. - Paulpolska - 06-27-2011

Use script from "The Servant Mod" ;]


RE: Waking up from Bed Script. - Angerpull - 06-27-2011

(06-27-2011, 05:34 PM)Paulpolska Wrote: Use script from "The Servant Mod" ;]

A link to the mod would be nice.


RE: Waking up from Bed Script. - Khyrpa - 06-27-2011

I would suggest learning how simple timers work.
Then using these, you can pretty much do what you wanted:
important ones
FadeOut(float afTime);
FadeIn(float afTime);
FadePlayerRollTo(float afX, float afSpeedMul, float afMaxSpeed);
MovePlayerHeadPos(float afX, float afY, float afZ, float afSpeed, float afSlowDownDist);
SetPlayerRunSpeedMul(float afMul);
SetPlayerMoveSpeedMul(float afMul);
SetPlayerJumpDisabled(bool abX);
SetPlayerCrouchDisabled(bool abX);

screen effects
FadeRadialBlurTo(float afSize, float afSpeed);
SetRadialBlurStartDist(float afStartDist);
FadeImageTrailTo(float afAmount, float afSpeed);

sound effects
PlaySoundAtEntity(string& asSoundName, string& asSoundFile, string& asEntity, float afFadeTime, bool abSaveSound);


RE: Waking up from Bed Script. - Angerpull - 06-27-2011

(06-27-2011, 05:45 PM)Khyrpa Wrote: I would suggest learning how simple timers work.
Then using these, you can pretty much do what you wanted:
important ones
FadeOut(float afTime);
FadeIn(float afTime);
FadePlayerRollTo(float afX, float afSpeedMul, float afMaxSpeed);
MovePlayerHeadPos(float afX, float afY, float afZ, float afSpeed, float afSlowDownDist);
SetPlayerRunSpeedMul(float afMul);
SetPlayerMoveSpeedMul(float afMul);
SetPlayerJumpDisabled(bool abX);
SetPlayerCrouchDisabled(bool abX);

screen effects
FadeRadialBlurTo(float afSize, float afSpeed);
SetRadialBlurStartDist(float afStartDist);
FadeImageTrailTo(float afAmount, float afSpeed);

sound effects
PlaySoundAtEntity(string& asSoundName, string& asSoundFile, string& asEntity, float afFadeTime, bool abSaveSound);

Holy sh... Those are just commands to me, I do not see how I can make them function and such. Very new to scripting.




RE: Waking up from Bed Script. - Kyle - 06-27-2011

Here's a link that can help you as it talks about it somewhat.

http://www.frictionalgames.com/forum/thread-4626.html