Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Waking up from Bed Script.
Angerpull Offline
Member

Posts: 88
Threads: 24
Joined: Jun 2011
Reputation: 0
#1
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 Angel
06-27-2011, 05:27 PM
Find
Paulpolska Offline
Member

Posts: 144
Threads: 29
Joined: Jun 2011
Reputation: 0
#2
RE: Waking up from Bed Script.

Use script from "The Servant Mod" ;]

MY CUSTOM STORY - - STILL ALIVE - -
http://www.moddb.com/mods/still-alive
06-27-2011, 05:34 PM
Find
Angerpull Offline
Member

Posts: 88
Threads: 24
Joined: Jun 2011
Reputation: 0
#3
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
Find
Khyrpa Offline
Senior Member

Posts: 638
Threads: 10
Joined: Apr 2011
Reputation: 24
#4
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
Find
Angerpull Offline
Member

Posts: 88
Threads: 24
Joined: Jun 2011
Reputation: 0
#5
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
Find
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#6
RE: Waking up from Bed Script.

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

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

06-27-2011, 06:30 PM
Find




Users browsing this thread: 1 Guest(s)