Frictional Games Forum (read-only)

Full Version: Waking up from Bed Script.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
Use script from "The Servant Mod" ;]
(06-27-2011, 05:34 PM)Paulpolska Wrote: [ -> ]Use script from "The Servant Mod" ;]

A link to the mod would be nice.
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);
(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.

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

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