Angerpull
Member
Posts: 88
Threads: 24
Joined: Jun 2011
Reputation:
0
|
Waking up from Bed Script.
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
|
|
06-27-2011, 05:27 PM |
|
Paulpolska
Member
Posts: 144
Threads: 29
Joined: Jun 2011
Reputation:
0
|
RE: Waking up from Bed Script.
Use script from "The Servant Mod" ;]
|
|
06-27-2011, 05:34 PM |
|
Angerpull
Member
Posts: 88
Threads: 24
Joined: Jun 2011
Reputation:
0
|
RE: Waking up from Bed Script.
(06-27-2011, 05:34 PM)Paulpolska Wrote: Use script from "The Servant Mod" ;]
A link to the mod would be nice.
|
|
06-27-2011, 05:35 PM |
|
Khyrpa
Senior Member
Posts: 638
Threads: 10
Joined: Apr 2011
Reputation:
24
|
RE: Waking up from Bed Script.
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 |
|
Angerpull
Member
Posts: 88
Threads: 24
Joined: Jun 2011
Reputation:
0
|
RE: Waking up from Bed Script.
(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.
|
|
06-27-2011, 05:59 PM |
|
Kyle
Posting Freak
Posts: 911
Threads: 36
Joined: Sep 2010
Reputation:
7
|
|
06-27-2011, 06:30 PM |
|
|